Пример #1
0
        public Task Handle(ProductCommentAddedEvent message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

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

            notifier.Clients.All.productCommentAdded(_responseBuilder.GetProductCommentAddedEvent(message));
            return(Task.FromResult(0));
        }