EnvelopeFlow.Integrations.Transports 0.1.0-alpha.3.1

This is a prerelease version of EnvelopeFlow.Integrations.Transports.
dotnet add package EnvelopeFlow.Integrations.Transports --version 0.1.0-alpha.3.1
                    
NuGet\Install-Package EnvelopeFlow.Integrations.Transports -Version 0.1.0-alpha.3.1
                    
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="EnvelopeFlow.Integrations.Transports" Version="0.1.0-alpha.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EnvelopeFlow.Integrations.Transports" Version="0.1.0-alpha.3.1" />
                    
Directory.Packages.props
<PackageReference Include="EnvelopeFlow.Integrations.Transports" />
                    
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 EnvelopeFlow.Integrations.Transports --version 0.1.0-alpha.3.1
                    
#r "nuget: EnvelopeFlow.Integrations.Transports, 0.1.0-alpha.3.1"
                    
#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 EnvelopeFlow.Integrations.Transports@0.1.0-alpha.3.1
                    
#: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=EnvelopeFlow.Integrations.Transports&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EnvelopeFlow.Integrations.Transports&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Tool

EnvelopeFlow.Integrations.Transports

Optional adapters connect typed provider messages to the durable dispatcher. DeliveryPayloads.Email, .Sms and .Push snapshot payloads as JSON and declare their capabilities. Email/SMS providers are resolved from the target's trusted full scope; the host supplies those resolver delegates. Push bridges require a live registration store and freshness policy, verify serialized owner equality and provider identity, reject stale revisions before sending and apply provider invalidation with compare-and-swap.

Email/SMS text and metadata require valid Unicode before JSON snapshotting. Malformed UTF-16 is rejected with a sanitized error, preventing replacement fallback from changing submitted content or aliasing its admission identity. Literal replacement characters, valid surrogate pairs and existing optional fields remain supported; provider-specific mailbox, sender and media policies are still applied by the selected transport.

Push bridges also require IGuardedPushTransport and use the binding wrapper's final live check after awaited credentials and before provider HTTP. All supplied push providers and nested binding wrappers support it. Unsupported custom transports fail during bridge construction. A stale or unavailable check prevents HTTP, preserving definite rejection evidence; changes after the final check or after HTTP starts cannot retract provider work. No callback is persisted in delivery JSON.

These adapters do not create HTTP endpoints, configure auth, publish packages, store conversation history or retry uncertain provider submissions. Operational JSON contains addresses, bodies and device tokens and must be protected by the application's database/retention policy. Do not log it.

var smtpBridge = new EmailDeliveryTransport("email.smtp", scopedEmailResolver,
    DeliveryCapabilities.Text | DeliveryCapabilities.Html | DeliveryCapabilities.Attachments);
var pushBridge = new PushDeliveryTransport(apnsTransport, pushRegistrationStore,
    TimeSpan.FromDays(30), timeProvider);
var dispatcher = new DeliveryDispatcher(deliveryStore, [smtpBridge, pushBridge]);
var target = DeliveryPayloads.Push(pushBridge.Name, queuedPushRequest);
await dispatcher.AdmitAsync(new DeliveryRequest(trustedOwner.Scope, applicationIdempotencyKey,
    [target], now, now.AddHours(1)), cancellationToken);

Email HTML/text support defaults on; attachment support requires an explicit capability selection so callers can represent a provider that does not support MIME attachments. SMS media/replies capabilities are configured to match the chosen provider. Bridges advertise only configured capabilities and validate requirements before admission. Firebase/APNs acceptance and SMTP acceptance remain submission acknowledgments. Unknown results never become retryable rejections.

Email/SMS transport resolution failures and cancellation observed before SendAsync starts are definite rejections without automatic retry. Once the provider send starts, an escaping interruption remains Unknown. Resolver delegates select application-owned transports; they must not submit messages themselves.

MMS may contain media without a text body. Media-only payloads require DeliveryCapabilities.Media; a caption also requires Text. Select the bridge's media capability and a provider with MMS support. Empty messages without media, null bodies and invalid media remain rejected before admission. Ordinary text/caption payloads keep their existing serialized representation and capability values.

Firebase rich options are included in the immutable push payload snapshot. Reopened durable work retains the exact options and owner/revision; a later registration refresh still rejects stale queued work. Legacy payloads without firebase continue to deserialize. Unknown fields, invalid URL/identifier options and use with another provider fail before sending; payload errors are sanitized. Retryable Firebase refusals retain dispatcher retry advice and Retry-After floors, while interrupted/Unknown sends remain non-retryable automatically.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.0-alpha.3.1 43 11/22/2026
0.1.0-alpha.2.1 56 11/9/2026