Euonia development framework and toolkit library for .NET application/service. Powered by Nerosoft.
License
—
Deps
14
Install Size
—
Vulns
✓ 0
Published
Feb 24, 2026
$ dotnet add package Euonia.BusEuonia.Bus is a .NET library designed to facilitate message-based communication within applications. It provides a robust and flexible framework for implementing messaging patterns, enabling developers to build scalable and maintainable systems.
To get started with Euonia.Bus, follow these steps:
Install the Package: Add the Euonia.Bus package to your project via NuGet.
dotnet add package Euonia.Bus
Register Services: In your application's, register the necessary services for the message bus.
services.AddEuoniaBus(config =>
{
// Configure the message conventions to determine the message types
config.SetConventions(builder =>
{
builder.Add<DefaultMessageConvention>();
builder.Add<AttributeMessageConvention>();
builder.Add<DomainMessageConvention>();
});
config.SetStrategy(typeof(InMemoryTransport), builder =>
{
builder.Add<LocalMessageTransportStrategy>();
//builder.Add(new AttributeTransportStrategy([typeof(InMemoryTransport)]));
builder.EvaluateIncoming(_ => true);
builder.EvaluateOutgoing(_ => true);
});
// Configure identity provider
config.SetIdentityProvider(jwt => JwtIdentityAccessor.Resolve(jwt, configuration));
config.RegisterHandlers([assemblies]);
});
Configure the Bus: In your application's configuration file (e.g., appsettings.json), add the necessary settings for the message bus.
Add Module Dependency: Add the required transport module dependency in your service module.
Implement Message Handlers: Create message handler classes to process incoming messages.
Run Your Application: Start your application, and it will now use Euonia.Bus for message-based communication.