2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudApp.Data.SAUB;
|
2021-04-23 10:21:25 +05:00
|
|
|
using System.Collections.Generic;
|
2021-08-11 16:54:42 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
{
|
2022-08-05 17:52:42 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Сервис сохранения списка сообщений от панелей
|
|
|
|
/// </summary>
|
2021-04-23 10:21:25 +05:00
|
|
|
public interface IEventService
|
|
|
|
{
|
2022-08-05 17:52:42 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Сохранить. Добавить или заменить.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
2021-09-10 11:28:57 +05:00
|
|
|
Task UpsertAsync(string uid, IEnumerable<EventDto> dtos,
|
2021-08-11 16:54:42 +05:00
|
|
|
CancellationToken token = default);
|
2021-04-23 10:21:25 +05:00
|
|
|
}
|
|
|
|
}
|