コード例 #1
0
        public Task Handle(NotificationUpdatedEvent message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            var notifier = _connectionManager.GetHubContext <Notifier>();

            notifier.Clients.All.notificationUpdated(_responseBuilder.GetNotificationUpdatedEvent(message));
            return(Task.FromResult(0));
        }