private Task ProcessMessageAsync(InvoiceUpdateMessage message)
 {
     return(_realtimeNotificationsService.SendInvoiceUpdateAsync(message));
 }
Exemplo n.º 2
0
        public async Task PublishAsync(InvoiceUpdateMessage message)
        {
            _log.Info("Publishing invoice update message", message);

            await _publisher.ProduceAsync(Mapper.Map <Contract.Invoice.InvoiceUpdateMessage>(message));
        }
        public async Task SendInvoiceUpdateAsync(InvoiceUpdateMessage message)
        {
            _log.Info("InvoiceUpdateMessage: " + message.ToJson());

            await _invoiceUpdateHub.Clients.Group(message.MerchantId).SendAsync("invoiceUpdated", message);
        }