Sparkdo.Communication.Sms.Aliyun
2.0.0-preview.2
This is a prerelease version of Sparkdo.Communication.Sms.Aliyun.
dotnet add package Sparkdo.Communication.Sms.Aliyun --version 2.0.0-preview.2
NuGet\Install-Package Sparkdo.Communication.Sms.Aliyun -Version 2.0.0-preview.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sparkdo.Communication.Sms.Aliyun" Version="2.0.0-preview.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.Communication.Sms.Aliyun" Version="2.0.0-preview.2" />
<PackageReference Include="Sparkdo.Communication.Sms.Aliyun" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sparkdo.Communication.Sms.Aliyun --version 2.0.0-preview.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sparkdo.Communication.Sms.Aliyun, 2.0.0-preview.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sparkdo.Communication.Sms.Aliyun@2.0.0-preview.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sparkdo.Communication.Sms.Aliyun&version=2.0.0-preview.2&prerelease
#tool nuget:?package=Sparkdo.Communication.Sms.Aliyun&version=2.0.0-preview.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sparkdo.Communication.Sms.Aliyun
基于阿里云 Dysmsapi SDK 的 SMS Provider。该服务只支持引用内容;逻辑内容名称通过 Profile 映射为阿里云 TemplateCode,内容参数序列化为 TemplateParam JSON。
smsOptions.Configure("transactional", profile => profile.UseAliyun(aliyun =>
{
aliyun.Credential = credentialClient;
aliyun.SignName = "订单中心";
aliyun.MapTemplate("verification-code", "SMS_123456789");
}));
优先使用 Credential 接入角色凭据或其他动态凭据。也可同时配置 AccessKeyId 与 AccessKeySecret,但凭据必须来自受保护的机密来源。
逻辑名称到服务商模板代码的映射属于部署适配,不在本包定义模板文本。未来接入文本模板产品域时,调用侧继续传递相同的 CommunicationContentReference 和参数即可。
Provider 不启用 SDK 自动重试。API 明确限流或暂时不可用时允许 Provider 链故障转移;传输异常返回 Unknown,避免因结果不确定而重复发送短信。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AlibabaCloud.SDK.Dysmsapi20170525 (>= 4.4.0)
- Aliyun.Credentials (>= 1.5.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Sparkdo.Communication.Sms (>= 2.0.0-preview.2)
- Sparkdo.Manifest (>= 2.0.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.2 | 82 | 7/20/2026 |