![]() |
VOOZH | about |
dotnet add package Franz.Common.Mediator --version 2.2.7
NuGet\Install-Package Franz.Common.Mediator -Version 2.2.7
<PackageReference Include="Franz.Common.Mediator" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Mediator" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Mediator" />Project file
paket add Franz.Common.Mediator --version 2.2.7
#r "nuget: Franz.Common.Mediator, 2.2.7"
#:package Franz.Common.Mediator@2.2.7
#addin nuget:?package=Franz.Common.Mediator&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Mediator&version=2.2.7Install as a Cake Tool
A deterministic execution engine for application commands, queries, notifications, and events within the Franz Framework.
This mediator is designed as a structured execution pipeline runtime, not a simple in-process dispatcher.
It provides:
IDispatcher as the single entry point for executionSupports:
ICommandHandler<TCommand, TResult>IQueryHandler<TQuery, TResult>INotificationHandler<TEvent>IEventHandler<TEvent>IStreamQueryHandler<TQuery, TStream>Handlers are discovered via assembly scanning and registered automatically.
The mediator supports composable execution pipelines:
IPipeline<TRequest, TResult>IEventPipeline<TEvent>Franz Mediator provides optional pipeline modules:
The Franz Mediator follows a strict execution flow:
Dispatcher
↓
Pre-Pipeline Stages
↓
Handler Execution
↓
Post-Pipeline Stages
↓
Observers (optional)
For events:
Dispatcher
↓
Event Pre-Pipeline
↓
Event Handlers
↓
Event Post-Pipeline
Pipeline execution order is explicit and predictable.
Cross-cutting concerns are modular pipeline components.
No implicit behavior chains outside registered pipelines.
Commands, queries, and events are distinct execution models.
All behavior is composed through IServiceCollection.
services.AddFranzMediator(
new[] { typeof(SomeHandler).Assembly });
services.AddFranzMediatorDefault();
This includes:
var result = await dispatcher.Send(new CreateHeroCommand());
await dispatcher.Publish(new HeroCreatedEvent());
Pipelines are additive and ordered via registration:
builder.Services.AddFranzSerilogAuditPipeline()
.AddFranzEventValidationPipeline()
.AddFranzSerilogLoggingPipeline()
.AddFranzTelemetry(env, config);
Each pipeline is:
This mediator:
AddFranzMediatorDefault() as canonical setup methodMIT License
Franz Mediator is designed around one principle:
Execution must be explicit, composable, and deterministic
It is not a request dispatcher with optional behaviors — it is a structured execution runtime for application logic.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Franz.Common.Mediator:
| Package | Downloads |
|---|---|
|
Franz.Common.Business
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Bootstrap
Shared utility library for the Franz Framework. |
|
|
Franz.Common.MongoDB
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Mediator.Polly
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Refit
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 512 | 6/7/2026 |
| 2.2.6 | 509 | 6/6/2026 |
| 2.2.5 | 550 | 6/4/2026 |
| 2.2.4 | 539 | 6/3/2026 |
| 2.2.3 | 525 | 6/2/2026 |
| 2.2.2 | 536 | 6/2/2026 |
| 2.2.1 | 547 | 5/24/2026 |
| 2.1.4 | 441 | 4/27/2026 |
| 2.1.3 | 422 | 4/26/2026 |
| 2.1.2 | 422 | 4/26/2026 |
| 2.1.1 | 426 | 4/22/2026 |
| 2.0.2 | 443 | 3/30/2026 |
| 2.0.1 | 435 | 3/29/2026 |
| 1.7.8 | 442 | 3/2/2026 |
| 1.7.7 | 470 | 1/31/2026 |
| 1.7.6 | 465 | 1/22/2026 |
| 1.7.5 | 437 | 1/10/2026 |
| 1.7.4 | 458 | 12/27/2025 |
| 1.7.3 | 524 | 12/22/2025 |
| 1.7.2 | 529 | 12/21/2025 |