Exemple #1
0
 /// <summary>
 /// Receive sms
 /// </summary>
 /// <param name="receiveSmsOptions">Receive sms options</param>
 /// <returns>Return receive sms result</returns>
 public static ReceiveSmsResult Receive(ReceiveSmsOptions receiveSmsOptions)
 {
     return(ReceiveAsync(receiveSmsOptions).Result);
 }
Exemple #2
0
        /// <summary>
        /// Receive sms
        /// </summary>
        /// <param name="account">Sms account</param>
        /// <param name="receiveSmsOptions">Receive sms options</param>
        /// <returns>Return receive sms result</returns>
        public static async Task <ReceiveSmsResult> ReceiveAsync(SmsAccount account, ReceiveSmsOptions receiveSmsOptions)
        {
            var smsProvider = GetSmsProvider();

            return(await ExecuteAsync(account, receiveSmsOptions, smsProvider.ReceiveAsync).ConfigureAwait(false));
        }
Exemple #3
0
 /// <summary>
 /// Receive sms
 /// </summary>
 /// <param name="account">Sms account</param>
 /// <param name="receiveSmsOptions">Receive sms options</param>
 /// <returns>Return receive sms result</returns>
 public static ReceiveSmsResult Receive(SmsAccount account, ReceiveSmsOptions receiveSmsOptions)
 {
     return(ReceiveAsync(account, receiveSmsOptions).Result);
 }