Пример #1
0
        /// <summary>
        /// Check black
        /// </summary>
        /// <param name="account">Sms acount</param>
        /// <param name="checkBlackOptions">Check black options</param>
        /// <returns>Return check black result</returns>
        public static async Task <CheckBlackResult> CheckBlackAsync(SmsAccount account, CheckBlackOptions checkBlackOptions)
        {
            var smsProvider = GetSmsProvider();

            return(await ExecuteAsync(account, checkBlackOptions, smsProvider.CheckBlackAsync).ConfigureAwait(false));
        }
Пример #2
0
 /// <summary>
 /// Check black
 /// </summary>
 /// <param name="account">Sms acount</param>
 /// <param name="checkBlackOptions">Check black options</param>
 /// <returns>Return check black result</returns>
 public static CheckBlackResult CheckBlack(SmsAccount account, CheckBlackOptions checkBlackOptions)
 {
     return(CheckBlackAsync(account, checkBlackOptions).Result);
 }
Пример #3
0
 /// <summary>
 /// Check black
 /// </summary>
 /// <param name="checkBlackOptions">Check black options</param>
 /// <returns>Return check black result</returns>
 public static CheckBlackResult CheckBlack(CheckBlackOptions checkBlackOptions)
 {
     return(CheckBlackAsync(checkBlackOptions).Result);
 }