private Task HandleMessage(Message m, CancellationToken c)
        {
            BusEventBase evt = new BusEventBase(m.Body);

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