public async Task Handle(PaymentReceiptGenerated notification, CancellationToken cancellationToken) { var sendToUri = new Uri("rabbitmq://localhost/generate_invoice_queuex"); var endPoint = await Program.BusControl.GetSendEndpoint(sendToUri); await endPoint.Send(notification); }
public Task Handle(PaymentReceiptGenerated notification, CancellationToken cancellationToken) { TestInitializer.Events.Add(notification); Log.Information($"{notification.Id}"); return(Task.CompletedTask); }