예제 #1
0
 /// <summary>
 /// Sends an SMS Message to the given destination
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// </param>
 /// <param name='source'>
 /// </param>
 /// <param name='destination'>
 /// </param>
 /// <param name='message'>
 /// </param>
 /// <param name='webhook'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SMSResponseModel> SendSmsAsync(this ISMS operations, string subscriptionId, string source, string destination, string message, string webhook = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SendSmsWithHttpMessagesAsync(subscriptionId, source, destination, message, webhook, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }