DotNetBrightener.Plugins.EventPubSub.AzureServiceBus 2024.0.14.6-preview-2730501

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

Azure Service Bus Integration for Event PubSub Library

© 2024 DotNet Brightener

Versions

Library Version
EventPubSub Core NuGet Version
EventPubSub Distributed Library NuGet Version
Dependency Injection Library NuGet Version
Azure Service Bus Integration Library NuGet Version
RabbitMq Integration Library NuGet Version

Installation

dotnet package add DotNetBrightener.Plugins.EventPubSub
dotnet package add DotNetBrightener.Plugins.EventPubSub.DependencyInjection
dotnet package add DotNetBrightener.Plugins.EventPubSub.Distributed
dotnet package add DotNetBrightener.Plugins.EventPubSub.AzureServiceBus
# or 
dotnet add package DotNetBrightener.Plugins.EventPubSub.RabbitMq

Usage

Configuration

Option 1: Use IConfiguration to configure the service bus

// Initialize EventPubSubService
var eventPubSubConfig = builder.Services
                               .AddEventPubSubService()
                                // scan for event messages in the given assembly
                               .AddEventMessagesFromAssemblies(typeof(DistributedTestMessage).Assembly)
                                // scan for event handlers in the given assembly
                               .AddEventHandlersFromAssemblies(Assembly.GetExecutingAssembly());

// Add Azure Service Bus
eventPubSubConfig.UseAzureServiceBus(builder.Configuration)
                 .Finalize();

In your appsettings.json file, add the the following configuration:

  "ServiceBusConfiguration": {
    "ConnectionString": "<your-endpoint-to-azure-service-bus>",
    "SubscriptionName": "<application-name>",
    "IncludeNamespaceForTopicName": false
  }
Option 2: Configure from code

// Initialize EventPubSubService
var eventPubSubConfig = builder.Services
                               .AddEventPubSubService()
                                // scan for event messages in the given assembly
                               .AddEventMessagesFromAssemblies(Assembly.GetExecutingAssembly(), typeof(DistributedTestMessage).Assembly)
                                // scan for event handlers in the given assembly
                               .AddEventHandlersFromAssemblies(Assembly.GetExecutingAssembly());

var distributedIntegrations = eventPubSubConfig.EnableDistributedIntegrations();

distributedIntegrations.SetSubscriptionName("<application-name>");
// if you want to exclude namespace in entity name
distributedIntegrations.ExcludeNamespaceInEntityName();

// Add Azure Service Bus
distributedIntegrations.UseAzureServiceBus("<azure-connection-string>");

// this should be called before builder.Build(), or before exiting ConfigureServices method
distributedIntegrations.Finalize();

Refer to the Event PubSub Library, MassTransit Integration Library for more details on how to configure the event messages, request/response messages and how to implement handlers for them.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.

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
2026.0.1-preview-notificati... 200 12/6/2025
2026.0.1-preview-net10-upgr... 167 11/25/2025
2026.0.1-preview-net10-upgr... 164 11/25/2025
2026.0.1-preview-net10-upgr... 162 11/24/2025
2026.0.1-preview-net10-upgr... 171 11/24/2025
2026.0.1-preview-713 391 12/10/2025
2026.0.1-preview-700 201 12/7/2025
2026.0.1-preview-689 96 12/6/2025
2026.0.1-preview-676 659 12/2/2025
2026.0.1-preview-671 111 11/29/2025
2026.0.1-preview-670 97 11/29/2025
2026.0.1-preview-669 99 11/29/2025
2026.0.1-preview-667 162 11/27/2025
2026.0.1-preview-665 155 11/27/2025
2026.0.1-preview-664 165 11/27/2025
2026.0.1-preview-660 164 11/25/2025
2025.0.10 169 11/25/2025
2025.0.10-preview-628 382 11/20/2025
2025.0.10-preview-605 262 11/17/2025
2025.0.10-preview-602 263 11/17/2025
2025.0.10-preview-581 282 11/11/2025
2025.0.10-preview-559 175 10/29/2025
2025.0.10-preview-557 173 10/27/2025
2025.0.9 179 10/26/2025
2025.0.9-preview-553 159 10/26/2025
2025.0.9-preview-539 106 10/12/2025
2025.0.9-preview-535 162 10/8/2025
2025.0.9-preview-509 182 10/2/2025
2025.0.9-preview-508 170 10/2/2025
2025.0.9-preview-487 188 9/29/2025
2025.0.9-preview-481 171 9/29/2025
2025.0.9-preview-473 144 9/28/2025
2025.0.8 189 9/23/2025
2025.0.6 177 9/22/2025
2025.0.6-preview-455 183 9/22/2025
2025.0.6-preview-454 293 9/17/2025
2025.0.6-preview-441 143 9/14/2025
2025.0.6-preview-440 131 9/14/2025
2025.0.6-preview-406 168 9/2/2025
2025.0.6-preview-401 161 9/2/2025
2025.0.6-preview-400 151 9/2/2025
2025.0.6-preview-369 215 8/27/2025
2025.0.6-preview-368 191 8/27/2025
2025.0.6-preview-334 170 8/18/2025
2025.0.6-preview-333 154 7/27/2025
2025.0.6-preview-332 497 7/24/2025
2025.0.6-preview-331 507 7/24/2025
2025.0.6-preview-328 495 7/24/2025
2025.0.6-preview-327 353 7/21/2025
2025.0.6-preview-326 356 7/21/2025
2025.0.6-preview-325 256 7/20/2025
2025.0.6-preview-324 254 7/20/2025
2025.0.6-preview-322 262 7/20/2025
2025.0.6-preview-321 254 7/19/2025
2025.0.6-preview-320 261 7/19/2025
2025.0.6-preview-319 165 7/17/2025
2025.0.6-preview-317 161 7/17/2025
2025.0.6-preview-316 162 7/17/2025
2025.0.6-preview-315 167 7/17/2025
2025.0.6-preview-314 151 7/17/2025
2025.0.6-preview-313 156 7/17/2025
2025.0.6-preview-312 164 7/16/2025
2025.0.5 183 7/10/2025
2025.0.5-preview-307 104 7/5/2025
2025.0.4 97 7/5/2025
2025.0.4-preview-305 116 7/4/2025
2025.0.4-preview-304 177 7/1/2025
2025.0.4-preview-299 159 5/31/2025
2025.0.4-preview-298 125 5/30/2025
2025.0.4-preview-296 162 5/30/2025
2025.0.4-preview-295 168 5/29/2025
2025.0.4-preview-293 174 5/26/2025
2025.0.4-preview-292 165 5/26/2025
2025.0.3 146 2/10/2025
2025.0.3-preview-288 143 2/10/2025
2025.0.2 135 1/21/2025
2025.0.2-preview-278 110 1/21/2025
2025.0.2-preview-277 131 12/16/2024
2025.0.1-rc-243301701 395 11/25/2024
2024.0.14.6 143 11/25/2024
2024.0.14.6-rc-243031001 212 10/29/2024
2024.0.14.6-rc-243030701 136 10/29/2024
2024.0.14.6-rc-242840501 126 10/10/2024
2024.0.14.6-rc-242820305 131 10/8/2024
2024.0.14.6-rc-242771401 224 10/3/2024
2024.0.14.6-rc-242770501 133 10/3/2024
2024.0.14.6-rc-242770201 145 10/3/2024
2024.0.14.6-rc-242761801 133 10/2/2024
2024.0.14.6-rc-242761601 143 10/2/2024
2024.0.14.6-rc-242761501 136 10/2/2024
2024.0.14.6-rc-242761401 144 10/2/2024
2024.0.14.6-rc-242760701 148 10/2/2024
2024.0.14.6-rc-242751002 122 10/1/2024
2024.0.14.6-rc-242750901 156 10/1/2024
2024.0.14.6-rc-242750502 134 10/1/2024
2024.0.14.6-rc-242750201 137 10/1/2024
2024.0.14.6-rc-242741501 130 9/30/2024
2024.0.14.6-rc-242730701 149 9/29/2024
2024.0.14.6-preview-2730501 109 9/29/2024
2024.0.14.6-preview-2701501 163 9/26/2024
2024.0.14.6-preview-2620901 179 9/18/2024
2024.0.14.6-preview-2570701 142 9/13/2024
2024.0.14.6-preview-2510703 193 9/7/2024
2024.0.14.6-preview-2480501 147 9/4/2024
2024.0.14.6-preview-2430401 156 8/30/2024
2024.0.14.6-preview-242730701 116 9/29/2024
2024.0.14.6-preview-2421703 124 8/29/2024
2024.0.14.6-preview-2421701 133 8/29/2024
2024.0.14.6-preview-2420901 130 8/29/2024
2024.0.14.6-preview-2390101 142 8/26/2024
2024.0.14.6-preview-2381603 158 8/25/2024
2024.0.14.6-preview-2341601 176 8/21/2024
2024.0.14.6-preview-2321602 155 8/20/2024
2024.0.14.6-preview-2190801 163 8/6/2024
2024.0.14.6-preview-2041501 132 7/22/2024
2024.0.14.6-preview-1920603 200 7/10/2024
2024.0.14.6-preview-1920301 136 7/10/2024
2024.0.14.6-preview-1911302 148 7/9/2024
2024.0.14.6-preview-1901001 168 7/8/2024
2024.0.14.6-preview-1900901 145 7/8/2024
2024.0.14.6-preview-1900801 134 7/8/2024
2024.0.14.6-preview-1860304 134 7/4/2024
2024.0.14.5 203 7/1/2024
2024.0.14.5-preview-1811601 135 6/29/2024
2024.0.14.5-preview-1810501 172 6/29/2024
2024.0.14.5-preview-180132 135 6/28/2024
2024.0.14.5-preview-180131 140 6/28/2024
2024.0.14.5-preview-180121 119 6/28/2024
2024.0.14.4 159 6/27/2024
2024.0.14.4-preview-7 136 6/27/2024
2024.0.14.3 156 6/21/2024
2024.0.14.1 154 6/6/2024
2024.0.14.1-preview 133 6/6/2024
2024.0.14-preview-1 143 6/6/2024
2024.0.13.8-preview 142 6/6/2024
2024.0.13.1-preview-0146 163 6/6/2024
2024.0.12.15803-preview-03 137 6/6/2024
2024.0.12.15608 150 6/4/2024
2024.0.12.15515 231 6/3/2024
2024.0.12.15220 142 5/31/2024
2024.0.12.15220-alpha31-240... 132 5/31/2024
2024.0.12.14911 193 5/28/2024
2024.0.12.14910-alpha28-240... 143 5/28/2024
2024.0.12.14823 184 5/27/2024
2024.0.12.14522-alpha7-2405... 153 5/24/2024
2024.0.12.14514-alpha6-2405... 148 5/24/2024
2024.0.12.14511 156 5/24/2024
2024.0.12.14314 211 5/22/2024
2024.0.12.14114 210 5/20/2024