Пример #1
0
        /// <summary>
        ///  发送追踪短信
        /// </summary>
        /// <param name="request"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        public async Task <OperationResult <bool> > SendBiSmsAsync(BiSmsRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var result = await _Client.SendBiSmsAsync(request, cancellationToken).ConfigureAwait(false);

            result.ThrowIfException(true);
            if (!result.Success)
            {
                _logger.Error($"SmsService SendBiSmsAsync fail => ErrorCode ={result.ErrorCode} & ErrorMessage ={result.ErrorMessage}");
            }
            return(result);
        }