Sparkdo.Communication.Abstractions 2.0.0-preview.2

This is a prerelease version of Sparkdo.Communication.Abstractions.
dotnet add package Sparkdo.Communication.Abstractions --version 2.0.0-preview.2
                    
NuGet\Install-Package Sparkdo.Communication.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.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.Abstractions" Version="2.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.Communication.Abstractions" />
                    
Project file
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.Abstractions --version 2.0.0-preview.2
                    
#r "nuget: Sparkdo.Communication.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.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.Abstractions&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.Communication.Abstractions&version=2.0.0-preview.2&prerelease
                    
Install as a Cake Tool

Sparkdo.Communication.Abstractions

统一通信调度的稳定公共契约。该包定义通道请求、调度策略、内容引用、参数和值结果,不包含运行时或具体服务商实现。

调用方通过 CommunicationDispatchRequest.Channels 明确选择本次需要发送的通道:

var request = new CommunicationDispatchRequest(
    CommunicationDispatchStrategy.All,
    [emailRequest, smsRequest],
    idempotencyKey: orderId);

All 按输入顺序执行全部通道;FirstAccepted 在第一个通道受理后停止。未知结果也会停止后续发送,以避免重复通知。

CommunicationContentReference 只保留外部内容产品域的引用和字符串参数。本包不定义模板,也不依赖具体模板实现。

Product 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

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Sparkdo.Communication.Abstractions:

Package Downloads
Sparkdo.Communication

Sparkdo Communication 多通道调度运行时与包清单。

Sparkdo.Communication.Email.Abstractions

Sparkdo Communication Email 渠道的稳定公共契约。

Sparkdo.Communication.Sms.Abstractions

Sparkdo Communication SMS 渠道的稳定公共契约。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.2 105 7/20/2026