public async Task <bool> Ping(CancellationToken cancellationToken) { var batch = OutgoingMessageBatch.ForPing(Destination); await _protocol.SendBatch(_callback, batch); return(true); }
private async Task sendBatch(OutgoingMessageBatch batch) { try { await _protocol.SendBatch(_callback, batch); } catch (Exception e) { batchSendFailed(batch, e); } }
public Task Ping() { var batch = OutgoingMessageBatch.ForPing(Destination); return(_protocol.SendBatch(_callback, batch)); }