Exemple #1
0
 public override Task HandleMessages(IEnumerable <ReadOnlyMemory <byte> > messages, CancellationToken cancellationToken)
 {
     _caller.EmptyCall();
     foreach (var message in messages)
     {
         _caller.Call(message);
     }
     return(Task.CompletedTask);
 }
Exemple #2
0
 public override Task HandleMessages(IEnumerable <BasicDeliverEventArgs> messages, CancellationToken cancellationToken)
 {
     foreach (var message in messages)
     {
         _caller.Call(message.Body);
     }
     _caller.EmptyCall();
     return(Task.CompletedTask);
 }
Exemple #3
0
 public void Call(ReadOnlyMemory <byte> message)
 {
     Caller.Call(message);
 }
 public void Handle(BasicDeliverEventArgs eventArgs, string matchingRoute)
 {
     _caller.Call($"{eventArgs.GetMessage()}:{matchingRoute}");
     throw new Exception();
 }
Exemple #5
0
 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()}");
 }
Exemple #8
0
 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();
 }