forked from ddrilling/AsbCloudServer
23 lines
746 B
C#
23 lines
746 B
C#
|
using AsbCloudWebApi.SignalR.Messages;
|
|||
|
using SignalRSwaggerGen.Attributes;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AsbCloudWebApi.SignalR.Clients
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Hub по работе с уведомлениями
|
|||
|
/// </summary>
|
|||
|
[SignalRHub]
|
|||
|
public interface INotificationHubClient
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Отправка клиенту сообщения с уведомлением
|
|||
|
/// </summary>
|
|||
|
/// <param name="message">сообщение с уведомлением</param>
|
|||
|
/// <param name="token"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task ReceiveNotifications(NotificationMessage message, CancellationToken token = default);
|
|||
|
}
|
|||
|
}
|