Exemple #1
0
        public async Task <bool> Ping(CancellationToken cancellationToken)
        {
            var batch = OutgoingMessageBatch.ForPing(Destination);
            await _protocol.SendBatch(_callback, batch);

            return(true);
        }
Exemple #2
0
 private async Task sendBatch(OutgoingMessageBatch batch)
 {
     try
     {
         await _protocol.SendBatch(_callback, batch);
     }
     catch (Exception e)
     {
         batchSendFailed(batch, e);
     }
 }
Exemple #3
0
        public Task Ping()
        {
            var batch = OutgoingMessageBatch.ForPing(Destination);

            return(_protocol.SendBatch(_callback, batch));
        }