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