예제 #1
0
 public override Task HandleMessages(IEnumerable <BasicDeliverEventArgs> messages, CancellationToken cancellationToken)
 {
     foreach (var message in messages)
     {
         _caller.Call(message.Body);
     }
     _caller.EmptyCall();
     return(Task.CompletedTask);
 }
예제 #2
0
 public override Task HandleMessages(IEnumerable <ReadOnlyMemory <byte> > messages, CancellationToken cancellationToken)
 {
     _caller.EmptyCall();
     foreach (var message in messages)
     {
         _caller.Call(message);
     }
     return(Task.CompletedTask);
 }
예제 #3
0
 public void EmptyCall()
 {
     Caller.EmptyCall();
     WaitHandle.Set();
 }