Exemplo n.º 1
0
 public async Task SendMessageAsync(string correlationId, SmsMessageV1 message, ConfigParams parameters)
 {
     using (var timing = Instrument(correlationId))
     {
         await CallCommandAsync <Task>(
             "send_message",
             correlationId,
             new
         {
             message    = message,
             parameters = parameters
         }
             );
     }
 }
Exemplo n.º 2
0
 public async Task SendMessageToRecipientsAsync(string correlationId, SmsRecipientV1[] recipients, SmsMessageV1 message, ConfigParams parameters)
 {
     using (var timing = Instrument(correlationId))
     {
         await CallCommandAsync <Task>(
             "send_message_to_recipients",
             correlationId,
             new
         {
             recipients = recipients,
             message    = message,
             parameters = parameters
         }
             );
     }
 }
Exemplo n.º 3
0
 public Task SendMessageAsync(string correlationId, SmsMessageV1 message, ConfigParams parameters)
 {
     return(DoNothingAsync());
 }
Exemplo n.º 4
0
 public Task SendMessageToRecipientsAsync(string correlationId, SmsRecipientV1[] recipients, SmsMessageV1 message, ConfigParams parameters)
 {
     return(DoNothingAsync());
 }