private Task ProcessMessageAsync(InvoiceUpdateMessage message) { return(_realtimeNotificationsService.SendInvoiceUpdateAsync(message)); }
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); }