Bsft.EventAggregator.Saga.Correlation 2.2.0.1

dotnet add package Bsft.EventAggregator.Saga.Correlation --version 2.2.0.1
                    
NuGet\Install-Package Bsft.EventAggregator.Saga.Correlation -Version 2.2.0.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="Bsft.EventAggregator.Saga.Correlation" Version="2.2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bsft.EventAggregator.Saga.Correlation" Version="2.2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Bsft.EventAggregator.Saga.Correlation" />
                    
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 Bsft.EventAggregator.Saga.Correlation --version 2.2.0.1
                    
#r "nuget: Bsft.EventAggregator.Saga.Correlation, 2.2.0.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 Bsft.EventAggregator.Saga.Correlation@2.2.0.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=Bsft.EventAggregator.Saga.Correlation&version=2.2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Bsft.EventAggregator.Saga.Correlation&version=2.2.0.1
                    
Install as a Cake Tool

Bsft.EventAggregator.Saga.Correlation

The bridge between Bsft.Correlation and the Bsft.EventAggregator.Saga family: it makes a saga step run under the correlation id of whatever caused it — the request that published the trigger event, or the request that scheduled the timer that fired days later — instead of one minted for the step's own service scope.

Install

dotnet add package Bsft.EventAggregator.Saga.Correlation

Requires Bsft.EventAggregator.Saga and Bsft.Correlation, and carries a FrameworkReference to Microsoft.AspNetCore.App for the middleware. The saga engine itself does not reference Bsft.Correlation — that would drag the request pipeline into a background component — which is exactly why this package exists.

Register

services.AddBsftCorrelation();
services.AddBsftSaga();
services.AddBsftSagaCorrelation();

app.UseBsftCorrelation();
app.UseBsftSagaCorrelation();

AddBsftSagaCorrelation registers the accessor that stamps a correlation id onto a scheduled timeout and reads it back when the timeout fires, and the initializer that hands the id a step is running under to that step's own correlation context. UseBsftSagaCorrelation closes the remaining gap — a step triggered directly by an event a request publishes — and is placed after UseBsftCorrelation, which is what resolves the id for the request. The timeout path needs no pipeline step. Without either call nothing breaks: a step simply keeps the fresh id of its own scope.

Configure

Option Default Effect
— — The package has no options type. It is two registrations and one middleware, with nothing to tune.

Validation: none — there is nothing to configure.

Extend

None. This package supplies implementations rather than declaring seams: CorrelationContextSagaAccessor for ISagaCorrelationAccessor and SagaCorrelationInitializer for ISagaCorrelationInitializer, both declared in Bsft.EventAggregator.Saga and both registered with TryAdd, so a host that wants its own bridge registers it first. The ambient id of a firing timeout deliberately wins over the scope's own id: without that precedence a chain of timeouts — a reminder that schedules the next reminder — would start a new correlation on every hop.

Documentation

Topic page: docs/saga.md. Conventions: docs/package-conventions.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.

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.2.0.1 0 10/31/2026
2.2.0 93 10/23/2026
2.1.0 107 9/28/2026