private Task HandleMessage(Message m, CancellationToken c) { BusEventBase evt = new BusEventBase(m.Body); evt.LockToken = m.SystemProperties.LockToken; return(_handlerCallback(evt, c)); }
private Task HandleMessage(BusEventBase m, MessageContext c) { return(_handlerCallback(m, new CancellationToken())); }
public override async Task SendEvent(IBusEvent message) { var msg = new BusEventBase(message.Body); await _busClient.PublishAsync(msg, Guid.NewGuid(), cfg => cfg .WithRoutingKey(QueueName)); }