Euonia.Bus.InMemory 10.4.2

dotnet add package Euonia.Bus.InMemory --version 10.4.2
                    
NuGet\Install-Package Euonia.Bus.InMemory -Version 10.4.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Euonia.Bus.InMemory" Version="10.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Euonia.Bus.InMemory" Version="10.4.2" />
                    
Directory.Packages.props
<PackageReference Include="Euonia.Bus.InMemory" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Euonia.Bus.InMemory --version 10.4.2
                    
#r "nuget: Euonia.Bus.InMemory, 10.4.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Euonia.Bus.InMemory@10.4.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Euonia.Bus.InMemory&version=10.4.2
                    
Install as a Cake Addin
#tool nuget:?package=Euonia.Bus.InMemory&version=10.4.2
                    
Install as a Cake Tool

In-Memory Transport

The 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.

Features

  • Lightweight: Minimal overhead for message processing.
  • Fast: Low-latency communication within the same application.
  • Easy to Use: Simple setup and configuration.
  • Ideal for Testing: Perfect for unit tests and local development.

Getting Started

To get started with the In-Memory transport in Euonia.Bus, follow these steps:

  1. Add the In-Memory Transport Package: Include the Euonia.Bus.InMemory package in your project.

    dotnet add package Euonia.Bus.InMemory
    
  2. 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"
        }
      }
    }
    
  3. 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
        }
    }
    
  4. 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);
        });
    });
    
  5. Run Your Application: Start your application, and it will now use In-Memory as the transport for Euonia.Bus.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.4.2 34 2/24/2026
10.4.1 93 2/12/2026
10.4.0 94 2/4/2026
10.3.0 110 1/16/2026
10.2.10 110 1/14/2026
10.2.9 98 1/14/2026
10.2.8 100 1/14/2026
10.2.7 106 1/10/2026
10.2.6 107 1/8/2026
10.2.5 103 1/7/2026
10.2.4 110 1/7/2026
10.2.3 100 1/7/2026
10.2.2 114 1/6/2026
10.2.1 104 1/6/2026
10.2.0 105 1/4/2026
10.1.11 281 12/19/2025
10.1.10 292 12/18/2025
10.1.6 290 12/17/2025
10.1.5 275 12/17/2025
10.1.0 278 12/17/2025
Loading failed