![]() |
VOOZH | about |
dotnet add package Franz.Common.Messaging.Hosting.Mediator --version 2.2.7
NuGet\Install-Package Franz.Common.Messaging.Hosting.Mediator -Version 2.2.7
<PackageReference Include="Franz.Common.Messaging.Hosting.Mediator" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Messaging.Hosting.Mediator" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging.Hosting.Mediator" />Project file
paket add Franz.Common.Messaging.Hosting.Mediator --version 2.2.7
#r "nuget: Franz.Common.Messaging.Hosting.Mediator, 2.2.7"
#:package Franz.Common.Messaging.Hosting.Mediator@2.2.7
#addin nuget:?package=Franz.Common.Messaging.Hosting.Mediator&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging.Hosting.Mediator&version=2.2.7Install as a Cake Tool
An extension library within the Franz Framework that integrates MediatR with hosted messaging services. This package provides support for dispatching messages using MediatR pipelines within hosted services, enabling clean, decoupled, and testable messaging workflows.
-Current Version: v2.2.7
This package relies on:
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Messaging.Hosting.MediatR
Use the MessagingStrategyExecuter class to implement MediatR pipelines in hosted messaging workflows:
using Franz.Common.Messaging.Hosting.MediatR;
public class MyMessagingStrategyExecuter : IMessagingStrategyExecuter
{
private readonly IMediator _mediator;
public MyMessagingStrategyExecuter(IMediator mediator)
{
_mediator = mediator;
}
public async Task ExecuteAsync(MessageContext context)
{
// Dispatch the message using MediatR
await _mediator.Send(new MyMessageCommand { Payload = context.Message });
}
}
Add MediatR and messaging services in the Startup class:
using Franz.Common.Messaging.Hosting.MediatR;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMediatR(typeof(MyMessageHandler).Assembly);
services.AddMessagingWithMediatR();
}
}
Define message handlers using MediatR's IRequestHandler:
using MediatR;
public class MyMessageCommand : IRequest
{
public string Payload { get; set; }
}
public class MyMessageHandler : IRequestHandler<MyMessageCommand>
{
public Task<Unit> Handle(MyMessageCommand request, CancellationToken cancellationToken)
{
// Handle the message
Console.WriteLine($"Processing message: {request.Payload}");
return Unit.Task;
}
}
The Franz.Common.Messaging.Hosting.MediatR package integrates seamlessly with:
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
MessagingStrategyExecuter for integrating MediatR pipelines into messaging workflows.| 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 1 NuGet packages that depend on Franz.Common.Messaging.Hosting.Mediator:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Bootstrap
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 105 | 6/7/2026 |
| 2.2.6 | 105 | 6/6/2026 |
| 2.2.5 | 112 | 6/4/2026 |
| 2.2.4 | 108 | 6/3/2026 |
| 2.2.3 | 104 | 6/2/2026 |
| 2.2.2 | 110 | 6/2/2026 |
| 2.2.1 | 106 | 5/24/2026 |
| 2.1.4 | 114 | 4/27/2026 |
| 2.1.3 | 109 | 4/26/2026 |
| 2.1.2 | 104 | 4/26/2026 |
| 2.1.1 | 120 | 4/22/2026 |
| 2.0.2 | 130 | 3/30/2026 |
| 2.0.1 | 125 | 3/29/2026 |
| 1.7.8 | 133 | 3/2/2026 |
| 1.7.7 | 132 | 1/31/2026 |
| 1.7.6 | 128 | 1/22/2026 |
| 1.7.5 | 133 | 1/10/2026 |
| 1.7.4 | 123 | 12/27/2025 |
| 1.7.3 | 210 | 12/22/2025 |
| 1.7.2 | 204 | 12/21/2025 |