Пример #1
0
 public async Task SendMessageAsync(string correlationId, EmailMessageV1 message, ConfigParams parameters)
 {
     using (var timing = Instrument(correlationId))
     {
         await CallCommandAsync <Task>(
             "send_message",
             correlationId,
             new
         {
             message    = message,
             parameters = parameters
         }
             );
     }
 }
 public Task SendMessageAsync(string correlationId, EmailMessageV1 message, ConfigParams parameters)
 {
     return(DoNothingAsync());
 }
 public Task SendMessageToRecipientsAsync(string correlationId, EmailRecipientV1[] recipients, EmailMessageV1 message, ConfigParams parameters)
 {
     return(DoNothingAsync());
 }
Пример #4
0
 public async Task SendMessageToRecipientsAsync(string correlationId, EmailRecipientV1[] recipients, EmailMessageV1 message, ConfigParams parameters)
 {
     using (var timing = Instrument(correlationId))
     {
         await CallCommandAsync <Task>(
             "send_message_to_recipients",
             correlationId,
             new
         {
             recipients = recipients,
             message    = message,
             parameters = parameters
         }
             );
     }
 }
 public Task SendMessageToRecipientsAsync(string correlationId, EmailRecipientV1[] recipients, EmailMessageV1 message, ConfigParams parameters)
 {
     parameters = this._defaultParameters.Override(parameters);
     return(this._controller.SendMessageToRecipientsAsync(correlationId, recipients, message, parameters));
 }