Myvas.AspNetCore.TencentSms
7.0.0
dotnet add package Myvas.AspNetCore.TencentSms --version 7.0.0
NuGet\Install-Package Myvas.AspNetCore.TencentSms -Version 7.0.0
<PackageReference Include="Myvas.AspNetCore.TencentSms" Version="7.0.0" />
paket add Myvas.AspNetCore.TencentSms --version 7.0.0
#r "nuget: Myvas.AspNetCore.TencentSms, 7.0.0"
// Install Myvas.AspNetCore.TencentSms as a Cake Addin #addin nuget:?package=Myvas.AspNetCore.TencentSms&version=7.0.0 // Install Myvas.AspNetCore.TencentSms as a Cake Tool #tool nuget:?package=Myvas.AspNetCore.TencentSms&version=7.0.0
TencentSms
An ISmsSender
implementation for TencentSms. (aka QcloudSms)
Demo
Myvas.AspNetCore.Authentication.Demo
NuGet
ConfigureServices
services.AddTencentSms(options =>
{
options.SdkAppId = Configuration["TencentSms:SdkAppId"];
options.AppKey = Configuration["TencentSms:AppKey"];
});
Inject & Invoke
private readonly ISmsSender _smsSender;
public XxxController(ISmsSender smsSender)
{
_smsSender = smsSender ?? throw new ArgumentNullException(nameof(smsSender);
}
public IActionResult Xxx()
{
//...
var result = await _smsSender.SendSmsAsync(mobile, content);
}
API Implementation Status
Plan:
- To support the TencentSms API, docs here: https://cloud.tencent.com/document/product/382
Dependencies:
DONE:
- 国内发送短信(发送一条短信)
- 国内群发短信(提交群发短信)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Options (>= 3.1.0)
- qcloud.qcloudsms_csharp (>= 0.1.6)
-
net5.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Options (>= 5.0.0)
- qcloud.qcloudsms_csharp (>= 0.1.6)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
- qcloud.qcloudsms_csharp (>= 0.1.6)
-
net7.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.0)
- qcloud.qcloudsms_csharp (>= 0.1.6)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Myvas.AspNetCore.TencentSms:
Package | Downloads |
---|---|
LJH.BS.DevPlatform
1、第三方集成服务 2、.netore升级到3.1 3、补充nodejs 等操作 4、剥离短信服务到接口 |
|
RG3.BS.Dev
1、【第三方集成RG3.BS.Dev】(可配置化,标准化,灵活配置,集成百度、腾讯、阿里、短信通等巨头接口,可脱离开发环境,集成nodejs中间件、统一认证中心) 2、以Rg3.开头且类继承 IService 或 IRepository的在Starup里面不用注入,案例如下 3、public class ListRepository : IRepository 4、public class ListService : IService 5、使用请到github获取 RG3.PF.WebApp.Host 6、初次发布 集成redis订阅、Quartz 7、https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/message-push.html 6、6.0.0.77开始,nodeserice迁移到RG3.PF.PinYinScriptEngineCliWrap |
|
LJH.BS.DevPlatform.Pay
1、第三方集成服务 2、.netore升级到3.1 3、补充nodejs 等操作 4、剥离短信服务到接口 |
GitHub repositories
This package is not used by any popular GitHub repositories.