EnvelopeFlow.Integrations.Policy
0.1.0-alpha.3.1
dotnet add package EnvelopeFlow.Integrations.Policy --version 0.1.0-alpha.3.1
NuGet\Install-Package EnvelopeFlow.Integrations.Policy -Version 0.1.0-alpha.3.1
<PackageReference Include="EnvelopeFlow.Integrations.Policy" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Integrations.Policy" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Integrations.Policy" />
paket add EnvelopeFlow.Integrations.Policy --version 0.1.0-alpha.3.1
#r "nuget: EnvelopeFlow.Integrations.Policy, 0.1.0-alpha.3.1"
#:package EnvelopeFlow.Integrations.Policy@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Integrations.Policy&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Integrations.Policy&version=0.1.0-alpha.3.1&prerelease
Optional policy and campaign bridges
RecipientPolicyGuard retains its legacy Boolean behavior: it performs live suppression/consent/quiet-hour/frequency admission for a trusted scoped recipient immediately before submission, and the legacy dispatcher cancels denied work. Frequency reservations are conservative and may cover failed/stale attempts. Supply category/channel mapping in application code; list/browser permission never implies consent.
Select richer decisions explicitly with RecipientPolicyDecisionEvaluator and RecipientPolicyReservation. The evaluator requires optional IRecipientPolicyEvaluationStore and never reserves a slot. The single final reservation requires optional IRecipientPolicyReservationStore, which atomically rechecks live policy/frequency under the store's recipient lock and returns rich eligibility floors. Supplied memory/PostgreSQL policy stores implement both capabilities; existing IRecipientPolicyStore implementations need no new mandatory members. Applications can implement these optional contracts using their own tables.
var preflight = new RecipientPolicyDecisionEvaluator(policies,
_ => ("news", NotificationChannel.Email, true), trustedClock);
var reservation = new RecipientPolicyReservation(policies,
_ => ("news", NotificationChannel.Email, true), trustedClock);
var pipeline = new SubmissionDecisionPipeline([preflight, applicationOwnershipCheck],
reservation, requireDeferralSupport: true);
var dispatcher = DeliveryDispatcher.WithSubmissionDecisions(deliveryStore,
applicationTransports, pipeline, timeProvider: trustedClock);
All preflights run before the one final atomic reservation. Suppression/missing consent are terminal; all-day quiet hours have no finite release and are terminal on this opt-in path. Finite quiet/frequency results defer until their UTC floor. A policy change between preflight and reservation is rechecked atomically: newly quiet work can defer, newly opted-out work is suppressed, and only an Allowed reservation spends a slot. Repeated preflights or denied/deferred final checks spend no slots. Malformed store decisions fail closed using fixed diagnostic codes. Both bridges validate the complete recipient scope before application selectors run and retain the same stable delivery ID as the legacy guard.
Do not adapt the reserving legacy RecipientPolicyGuard as a side-effect-free Boolean preflight or compose several independently spending reservation guards. Applications needing several atomic constraints combine them behind the one reservation. Keep selector mapping stable across preflight/reservation, and perform authenticated installation/destination checks through application-owned preflights. Atomic policy reservation is separate from delivery claim fencing and provider I/O; a lost claim, later opt-out or uncertain send cannot be rolled back as one database transaction. Conservative reservations remain, and a check cannot retract provider work already in flight. Durable deferral requires a compatible durable delivery store; an in-memory delivery store remains ephemeral.
CampaignDeliverySink maps a bounded campaign submission to a bulk delivery request using its stable idempotency key and a mapper-provided stable absolute schedule. A mapper cannot change scope/key/traffic priority. Durable campaign recovery requires durable audiences and a durable delivery store; the bridge introduces no implicit storage.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Campaigns (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Delivery (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Preferences (>= 0.1.0-alpha.3.1)
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 | 46 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 60 | 11/9/2026 |