Sparkdo.Communication.Sms.Abstractions
2.0.0-preview.2
This is a prerelease version of Sparkdo.Communication.Sms.Abstractions.
dotnet add package Sparkdo.Communication.Sms.Abstractions --version 2.0.0-preview.2
NuGet\Install-Package Sparkdo.Communication.Sms.Abstractions -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.Abstractions" 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.Abstractions" Version="2.0.0-preview.2" />
<PackageReference Include="Sparkdo.Communication.Sms.Abstractions" />
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.Abstractions --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.Abstractions, 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.Abstractions@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.Abstractions&version=2.0.0-preview.2&prerelease
#tool nuget:?package=Sparkdo.Communication.Sms.Abstractions&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.Abstractions
SMS 通道的稳定消息契约,包含接收号码、直接内容和外部内容引用。
var parameters = new CommunicationParameters([
new("code", "123456"),
new("minutes", "5")]);
var message = new SmsMessage(
[new SmsRecipient("13800138000")],
new ReferencedSmsContent(new CommunicationContentReference(
resolverName: "text-templating",
name: "verification-code",
parameters)));
var request = new SmsChannelRequest("transactional", message);
CommunicationParameters 会创建不可变参数快照,可用于服务商模板参数映射,也为后续可靠投递持久化保留稳定边界。模板本身由外部文本模板产品域提供。
| 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
- Sparkdo.Communication.Abstractions (>= 2.0.0-preview.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sparkdo.Communication.Sms.Abstractions:
| Package | Downloads |
|---|---|
|
Sparkdo.Communication.Sms
Sparkdo Communication SMS 渠道路由与 Provider 运行时。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.2 | 83 | 7/20/2026 |