2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudWebApi.SignalR.Messages;
|
2023-10-30 12:13:38 +05:00
|
|
|
|
using SignalRSwaggerGen.Attributes;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudWebApi.SignalR.Clients;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hub по работе с уведомлениями
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SignalRHub]
|
|
|
|
|
public interface INotificationHubClient
|
2023-10-30 12:13:38 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// Отправка клиенту сообщения с уведомлением.
|
|
|
|
|
/// Для подписки на метод необходимо отправить connectionId
|
2023-10-30 12:13:38 +05:00
|
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="message">сообщение с уведомлением</param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task ReceiveNotifications(NotificationMessage message, CancellationToken token);
|
2023-10-30 12:13:38 +05:00
|
|
|
|
}
|