SiHan.Asp.Sms 1.0.1

ASP.NET Core 发送短信库

Install-Package SiHan.Asp.Sms -Version 1.0.1
dotnet add package SiHan.Asp.Sms --version 1.0.1
<PackageReference Include="SiHan.Asp.Sms" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiHan.Asp.Sms --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiHan.Asp.Sms, 1.0.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

SiHan.Asp.Sms

ASP.NET Core 短信验证码库,核心类如下:

  • ISmsService:短信发送服务接口,约定验证码发送接口。
  • Mb345Service:凌凯短信服务
  • SmsException:短信发送异常,包含短信发生失败的原因。

凌凯短信服务

必须在配置项中添加以下内容:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Mb345": {
    "UserName": "*****",
    "Password": "*****",
    "SuffixName": "*****",
    "OperateTime": "10"
  }
}

其中OperateTime为选填,单位是分钟,没有OperateTime此项,将默认是10。

SiHan.Asp.Sms

ASP.NET Core 短信验证码库,核心类如下:

  • ISmsService:短信发送服务接口,约定验证码发送接口。
  • Mb345Service:凌凯短信服务
  • SmsException:短信发送异常,包含短信发生失败的原因。

凌凯短信服务

必须在配置项中添加以下内容:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Mb345": {
    "UserName": "*****",
    "Password": "*****",
    "SuffixName": "*****",
    "OperateTime": "10"
  }
}

其中OperateTime为选填,单位是分钟,没有OperateTime此项,将默认是10。

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 158 12/25/2019