Three21.EventBus 2.0.111.10

There is a newer version of this package available.
See the version list below for details.
dotnet add package Three21.EventBus --version 2.0.111.10
                    
NuGet\Install-Package Three21.EventBus -Version 2.0.111.10
                    
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="Three21.EventBus" Version="2.0.111.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Three21.EventBus" Version="2.0.111.10" />
                    
Directory.Packages.props
<PackageReference Include="Three21.EventBus" />
                    
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 Three21.EventBus --version 2.0.111.10
                    
#r "nuget: Three21.EventBus, 2.0.111.10"
                    
#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 Three21.EventBus@2.0.111.10
                    
#: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=Three21.EventBus&version=2.0.111.10
                    
Install as a Cake Addin
#tool nuget:?package=Three21.EventBus&version=2.0.111.10
                    
Install as a Cake Tool

Introduction

This is a slightly modified version of the Event Bus building block found in the eShopOnContainers Reference Application.

Getting Started

  1. Add a reference to the Three21.EventBus.RabbitMQ nuget package.
  2. Create Events and Event Handlers.
  3. Register the IEventBus service and subscribe to the applicable events.

Creating Events

Create a record that inherits from IntegrationEvent.

public record MyEvent : IntegrationEvent
{
    //TODO Add appropriate event properties...
}

Creating Event Handlers

Create a class that implements IIntegrationEventHandler<SomeIntegrationEvent>.

public class MyEventHandler : IIntegrationEventHandler<MyEvent>
{
    public Task Handle(MyEvent @event)
    {
        //TODO Process MyEvent...
    }
}

Registering the IEventBusService and Subscribing to Events

private void ConfigureRabbitMQ(IServiceCollection services)
{
    var options = new RabbitMQEventBusOptions()
    {
        ExchangeName = "my-exchange",
        ExchangeType = "topic",
        QueueName = "my-queue",
        HostName = "localhost",
        UserName = "my-username",
        Password = "my-password",
        RetryCount = 5
    };

    services.AddTransient<MyEventHandler>();

    services.AddRabbitMQ(options, eventBus =>
    {
        eventBus.Subscribe<MyEvent, MyEventHandler>();
    });
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 was computed.  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.
  • net7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Three21.EventBus:

Package Downloads
Three21.EventBus.RabbitMQ

A slightly modified version of the RabbitMQ Event Bus building block found in the eShopOnContainers Reference Application. (https://github.com/dotnet-architecture/eShopOnContainers)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.119.10 119 10/18/2025
3.0.118.10 124 9/13/2025
3.0.117.10 176 9/7/2025
3.0.116.10 274 8/6/2025
3.0.115.10 195 7/26/2025
3.0.114.11 204 7/9/2025
3.0.113.10 188 7/9/2025
3.0.112.10 197 6/18/2025
3.0.111.10 290 5/14/2025
3.0.110.12 205 4/11/2025
3.0.107.10 174 3/22/2025
3.0.106.10 225 3/12/2025
3.0.105.10 169 3/1/2025
3.0.104.10 172 2/24/2025
3.0.103.10 182 2/15/2025
3.0.102.10 187 1/15/2025
3.0.101.10 181 12/11/2024
3.0.100.10 189 11/16/2024
2.0.141.10 196 10/11/2024
2.0.140.10 196 9/27/2024
2.0.139.10 210 8/16/2024
2.0.138.10 194 7/13/2024
2.0.137.10 193 6/28/2024
2.0.136.10 212 6/15/2024
2.0.135.10 209 6/1/2024
2.0.134.10 192 5/17/2024
2.0.133.10 212 4/12/2024
2.0.132.10 241 3/8/2024
2.0.131.10 209 2/24/2024
2.0.130.10 196 2/15/2024
2.0.129.10 225 1/13/2024
2.0.128.10 230 12/19/2023
2.0.127.10 245 12/9/2023
2.0.126.10 218 12/1/2023
2.0.125.12 190 11/16/2023
2.0.122.10 230 10/28/2023
2.0.121.11 212 10/14/2023
2.0.120.10 204 10/14/2023
2.0.119.10 220 9/30/2023
2.0.118.10 182 9/16/2023
2.0.117.10 248 8/12/2023
2.0.116.10 248 7/15/2023
2.0.115.10 251 6/29/2023
2.0.114.10 275 6/20/2023
2.0.113.10 285 5/19/2023
2.0.112.10 304 4/21/2023
2.0.111.10 325 4/12/2023
2.0.110.10 362 3/31/2023
2.0.109.10 370 3/15/2023
2.0.108.10 385 2/25/2023
2.0.107.10 392 2/21/2023
2.0.106.10 433 1/11/2023
2.0.105.10 499 12/3/2022
2.0.104.11 502 11/13/2022
2.0.103.10 483 11/13/2022
2.0.102.11 489 10/23/2022
2.0.101.10 546 10/23/2022
2.0.100.10 513 10/14/2022
1.0.130.10 710 6/16/2022
1.0.129.10 674 5/14/2022
1.0.128.10 731 3/25/2022
1.0.127.11 668 3/21/2022
1.0.126.10 672 3/21/2022
1.0.125.11 697 3/20/2022
1.0.124.10 678 3/20/2022
1.0.123.11 682 3/19/2022
1.0.122.10 672 3/19/2022
1.0.121.11 693 3/5/2022
1.0.120.10 693 3/5/2022
1.0.119.13 703 2/26/2022
1.0.115.10 694 2/16/2022