public override Task HandleMessages(IEnumerable <ReadOnlyMemory <byte> > messages, CancellationToken cancellationToken) { _caller.EmptyCall(); foreach (var message in messages) { _caller.Call(message); } return(Task.CompletedTask); }
public override Task HandleMessages(IEnumerable <BasicDeliverEventArgs> messages, CancellationToken cancellationToken) { foreach (var message in messages) { _caller.Call(message.Body); } _caller.EmptyCall(); return(Task.CompletedTask); }
public void Call(ReadOnlyMemory <byte> message) { Caller.Call(message); }
public void Handle(BasicDeliverEventArgs eventArgs, string matchingRoute) { _caller.Call($"{eventArgs.GetMessage()}:{matchingRoute}"); throw new Exception(); }
public void Handle(MessageHandlingContext context, string matchingRoute) { _caller.Call($"{context.Message.GetMessage()}:{matchingRoute}"); throw new Exception(); }
public void Handle(BasicDeliverEventArgs eventArgs, string matchingRoute, IQueueService queueService) { _caller.Call($"{eventArgs.GetMessage()}:{matchingRoute}:{queueService.GetType()}"); }
public void Handle(string message, string routingKey, IQueueService queueService) { _caller.Call($"{message}:{routingKey}:{queueService.GetType()}"); }
public void Handle(string message, string routingKey) { _caller.Call($"{message}:{routingKey}"); }
public void Handle(string message, string routingKey) { _caller.Call($"{message}:{routingKey}"); throw new Exception(); }