Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 public void EmptyCall()
 {
     Caller.EmptyCall();
     WaitHandle.Set();
 }