Example #1
0
 public Task SendAsync(
     string destination,
     byte[] content     = null,
     string contentType = MediaTypeNames.ApplicationOctet,
     bool useReceipt    = false,
     IEnumerable <KeyValuePair <string, string> > extraHeaders = null,
     CancellationToken?cancellationToken = null)
 {
     return(Client.WriteSendAsync(
                destination,
                content,
                contentType,
                useReceipt ? Client.GetNextReceiptId() : null,
                TransactionId,
                extraHeaders,
                cancellationToken));
 }