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.Bus.InMemoryThe In-Memory Transport is a lightweight transport mechanism designed for scenarios where messages need to be exchanged within the same process or application domain. It is ideal for testing, development, and scenarios where low-latency communication is required without the overhead of network protocols.
To get started with the In-Memory transport in Euonia.Bus, follow these steps:
Add the In-Memory Transport Package: Include the Euonia.Bus.InMemory package in your project.
dotnet add package Euonia.Bus.InMemory
Configure the In-Memory Transport: In your application's configuration file (e.g., appsettings.json), add the In-Memory transport settings under the EuoniaBus section:
{
"EuoniaBus": {
"InMemory": {
"Name": "InMemory"
}
}
}
Add Module Dependency: Add the In-Memory transport module dependency in your service module:
[DependsOn(typeof(InMemoryBusModule))]
public class YourServiceModule : ModuleContextBase
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
// Configure your services here
}
}
Add Incoming/Outgoing Strategy: Implement the necessary message handling strategies for incoming and outgoing messages.
services.AddEuoniaBus(config =>
{
config.SetStrategy("InMemory", builder =>
{
builder.Add(new AttributeTransportStrategy(["InMemory"]));
builder.Add<LocalMessageTransportStrategy>();
builder.EvaluateOutgoing(e => true);
builder.EvaluateIncoming(e => true);
});
});
Run Your Application: Start your application, and it will now use In-Memory as the transport for Euonia.Bus.