A comprehensive abstraction layer for event bus implementations, providing core interfaces and models for building scalable event-driven architectures in .NET 10.
- Producer/Consumer Abstractions: Core interfaces for publishing and consuming events
- Configuration Options: Flexible interfaces for configuring consumer and producer behavior
- Event Models: Base classes for domain events and integration events
- MediatR Integration: Support for MediatR notifications and handlers
- Cross-Platform Support: Built for modern .NET
Configuration interface for consumer and producer settings.
public interface IConsumerProducerOptions
{
List<string> Servers { get; set; }
string Group { get; set; }
string Client { get; set; }
}Specialized configuration for multiplexed consumer scenarios.
dotnet add package CodeChavez.EventBus.AbstractionsConfigure consumer and producer options by implementing IConsumerProducerOptions:
public class EventBusOptions : IConsumerProducerOptions
{
public List<string> Servers { get; set; } = new() { "localhost:9092" };
public string Group { get; set; } = "my-consumer-group";
public string Client { get; set; } = "my-client";
}- .NET 10 and higher
This project is part of the CodeChavez community projects.