예제 #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);
 }
예제 #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);
 }
예제 #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();
 }
예제 #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()}");
 }
예제 #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();
 }