/// <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); }
/// <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)); }
/// <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); }