23 lines
824 B
C#
23 lines
824 B
C#
// using MediatR;
|
|
// using Microsoft.AspNetCore.SignalR;
|
|
// using Sledgemapper.Api.Notifications;
|
|
// using Sledgemapper.Clients;
|
|
// using System.Threading;
|
|
// using System.Threading.Tasks;
|
|
// using Sledgemapper.Api.Hubs;
|
|
|
|
// namespace Sledgemapper.Api.Handlers
|
|
// {
|
|
// public class SendPingMessage : INotificationHandler<PingNotification>
|
|
// {
|
|
// private readonly IHubContext<SledgemapperHub, ISledgemapperClient> _hub;
|
|
|
|
// public SendPingMessage(IHubContext<SledgemapperHub, ISledgemapperClient> hub) => _hub = hub;
|
|
|
|
// public async Task Handle(PingNotification notification, CancellationToken cancellationToken)
|
|
// {
|
|
|
|
// await _hub.Clients.Groups(notification.Session.SessionName).Ping(notification.Location, notification.UserId);
|
|
// }
|
|
// }
|
|
// }
|