15 lines
651 B
C#
15 lines
651 B
C#
using adas_core.Domain.Models.MongoModels;
|
|
using MongoDB.Bson;
|
|
|
|
namespace adas_core.Application.Services.Interfaces;
|
|
|
|
public interface IAlertValuesService
|
|
{
|
|
/// <summary>
|
|
/// Asynchronously finds a <see cref="ConfigObservation"/> identified by the specified key.
|
|
/// Returns <c>null</c> when no matching configuration observation exists.
|
|
/// </summary>
|
|
/// <param name="key">The identifier of the configuration observation to look up.</param>
|
|
/// <returns>A task that yields the matching <see cref="ConfigObservation"/>, or <c>null</c> if no record is found.</returns>
|
|
Task<ConfigObservation?> FindByKey(ObjectId key);
|
|
} |