![]() |
VOOZH | about |
dotnet add package Franz.Common.Messaging.MassTransit --version 2.2.7
NuGet\Install-Package Franz.Common.Messaging.MassTransit -Version 2.2.7
<PackageReference Include="Franz.Common.Messaging.MassTransit" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Messaging.MassTransit" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging.MassTransit" />Project file
paket add Franz.Common.Messaging.MassTransit --version 2.2.7
#r "nuget: Franz.Common.Messaging.MassTransit, 2.2.7"
#:package Franz.Common.Messaging.MassTransit@2.2.7
#addin nuget:?package=Franz.Common.Messaging.MassTransit&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging.MassTransit&version=2.2.7Install as a Cake Tool
A library within the Franz Framework that integrates MassTransit with messaging workflows. This package simplifies the setup and management of Kafka-based messaging using MassTransit, providing tools for producers, consumers, and client registrations.
IKafkaProducer) and consumers (IKafkaConsumer).IMessagingClient for abstracting and managing messaging operations.ServiceRegistration to streamline the setup of Kafka producers and consumers.-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.MassTransit
Use ServiceRegistration to set up Kafka producers and consumers:
using Franz.Common.Messaging.MassTransit.Extensions;
services.AddMassTransitKafkaMessaging(cfg =>
{
cfg.Host("localhost:9092", h =>
{
h.Username = "your-username";
h.Password = "your-password";
});
});
Define Kafka producer and consumer interfaces:
using Franz.Common.Messaging.MassTransit.Contracts;
public interface IOrderCreatedProducer : IKafkaProducer<OrderCreatedEvent> { }
public interface IOrderCreatedConsumer : IKafkaConsumer<OrderCreatedEvent> { }
Implement the producer and consumer logic:
using Franz.Common.Messaging.MassTransit.Clients;
public class OrderCreatedProducer : KafkaProducer<OrderCreatedEvent>, IOrderCreatedProducer
{
public OrderCreatedProducer(IMessagingClient client) : base(client) { }
}
public class OrderCreatedConsumer : KafkaConsumer<OrderCreatedEvent>, IOrderCreatedConsumer
{
public OrderCreatedConsumer(IMessagingClient client) : base(client) { }
}
Leverage IMessagingClient to abstract messaging operations:
using Franz.Common.Messaging.MassTransit.Clients;
public class MessagingService
{
private readonly IMessagingClient _messagingClient;
public MessagingService(IMessagingClient messagingClient)
{
_messagingClient = messagingClient;
}
public async Task PublishMessageAsync<T>(T message) where T : class
{
await _messagingClient.PublishAsync(message);
}
}
The Franz.Common.Messaging.MassTransit 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.
IKafkaProducer and IKafkaConsumer interfaces for Kafka operations.IMessagingClient for abstracted messaging operations.ServiceRegistration for streamlined Kafka setup with MassTransit.| 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 94 | 6/7/2026 |
| 2.2.6 | 99 | 6/6/2026 |
| 2.2.5 | 98 | 6/4/2026 |
| 2.2.4 | 92 | 6/3/2026 |
| 2.2.3 | 94 | 6/2/2026 |
| 2.2.2 | 102 | 6/2/2026 |
| 2.2.1 | 97 | 5/24/2026 |
| 2.1.4 | 113 | 4/27/2026 |
| 2.1.3 | 104 | 4/26/2026 |
| 2.1.2 | 107 | 4/26/2026 |
| 2.1.1 | 121 | 4/22/2026 |
| 2.0.2 | 116 | 3/30/2026 |
| 2.0.1 | 111 | 3/29/2026 |
| 1.7.8 | 113 | 3/2/2026 |
| 1.7.7 | 133 | 1/31/2026 |
| 1.7.6 | 119 | 1/22/2026 |
| 1.7.5 | 128 | 1/10/2026 |
| 1.7.4 | 125 | 12/27/2025 |
| 1.7.3 | 215 | 12/22/2025 |
| 1.7.2 | 214 | 12/21/2025 |