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

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-2570701                
NuGet\Install-Package DotNetBrightener.Plugins.EventPubSub.AzureServiceBus -Version 2024.0.14.6-preview-2570701                
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-2570701" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetBrightener.Plugins.EventPubSub.AzureServiceBus --version 2024.0.14.6-preview-2570701                
#r "nuget: DotNetBrightener.Plugins.EventPubSub.AzureServiceBus, 2024.0.14.6-preview-2570701"                
#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.
// Install DotNetBrightener.Plugins.EventPubSub.AzureServiceBus as a Cake Addin
#addin nuget:?package=DotNetBrightener.Plugins.EventPubSub.AzureServiceBus&version=2024.0.14.6-preview-2570701&prerelease

// Install DotNetBrightener.Plugins.EventPubSub.AzureServiceBus as a Cake Tool
#tool nuget:?package=DotNetBrightener.Plugins.EventPubSub.AzureServiceBus&version=2024.0.14.6-preview-2570701&prerelease                

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. 
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
2025.0.3 91 a month ago
2025.0.3-preview-288 89 a month ago
2025.0.2 98 2 months ago
2025.0.2-preview-278 74 2 months ago
2025.0.2-preview-277 84 3 months ago
2025.0.1-rc-243301701 307 4 months ago
2024.0.14.6 108 4 months ago
2024.0.14.6-rc-243031001 160 5 months ago
2024.0.14.6-rc-243030701 93 5 months ago
2024.0.14.6-rc-242840501 84 5 months ago
2024.0.14.6-rc-242820305 84 5 months ago
2024.0.14.6-rc-242771401 183 6 months ago
2024.0.14.6-rc-242770501 86 6 months ago
2024.0.14.6-rc-242770201 102 6 months ago
2024.0.14.6-rc-242761801 85 6 months ago
2024.0.14.6-rc-242761601 99 6 months ago
2024.0.14.6-rc-242761501 89 6 months ago
2024.0.14.6-rc-242761401 101 6 months ago
2024.0.14.6-rc-242760701 106 6 months ago
2024.0.14.6-rc-242751002 86 6 months ago
2024.0.14.6-rc-242750901 102 6 months ago
2024.0.14.6-rc-242750502 99 6 months ago
2024.0.14.6-rc-242750201 88 6 months ago
2024.0.14.6-rc-242741501 82 6 months ago
2024.0.14.6-rc-242730701 114 6 months ago
2024.0.14.6-preview-2730501 74 6 months ago
2024.0.14.6-preview-2701501 114 6 months ago
2024.0.14.6-preview-2620901 133 6 months ago
2024.0.14.6-preview-2570701 97 6 months ago
2024.0.14.6-preview-2510703 145 6 months ago
2024.0.14.6-preview-2480501 102 7 months ago
2024.0.14.6-preview-2430401 116 7 months ago
2024.0.14.6-preview-242730701 79 6 months ago
2024.0.14.6-preview-2421703 88 7 months ago
2024.0.14.6-preview-2421701 90 7 months ago
2024.0.14.6-preview-2420901 89 7 months ago
2024.0.14.6-preview-2390101 96 7 months ago
2024.0.14.6-preview-2381603 115 7 months ago
2024.0.14.6-preview-2341601 132 7 months ago
2024.0.14.6-preview-2321602 114 7 months ago
2024.0.14.6-preview-2190801 117 7 months ago
2024.0.14.6-preview-2041501 100 8 months ago
2024.0.14.6-preview-1920603 156 8 months ago
2024.0.14.6-preview-1920301 95 8 months ago
2024.0.14.6-preview-1911302 105 8 months ago
2024.0.14.6-preview-1901001 116 8 months ago
2024.0.14.6-preview-1900901 101 8 months ago
2024.0.14.6-preview-1900801 94 8 months ago
2024.0.14.6-preview-1860304 99 9 months ago
2024.0.14.5 156 9 months ago
2024.0.14.5-preview-1811601 95 9 months ago
2024.0.14.5-preview-1810501 115 9 months ago
2024.0.14.5-preview-180132 103 9 months ago
2024.0.14.5-preview-180131 103 9 months ago
2024.0.14.5-preview-180121 88 9 months ago
2024.0.14.4 115 9 months ago
2024.0.14.4-preview-7 94 9 months ago
2024.0.14.3 115 9 months ago
2024.0.14.1 114 9 months ago
2024.0.14.1-preview 89 9 months ago
2024.0.14-preview-1 95 9 months ago
2024.0.13.8-preview 112 9 months ago
2024.0.13.1-preview-0146 113 9 months ago
2024.0.12.15803-preview-03 98 9 months ago
2024.0.12.15608 109 10 months ago
2024.0.12.15515 190 10 months ago
2024.0.12.15220 100 10 months ago
2024.0.12.15220-alpha31-240... 91 10 months ago
2024.0.12.14911 151 10 months ago
2024.0.12.14910-alpha28-240... 102 10 months ago
2024.0.12.14823 139 10 months ago
2024.0.12.14522-alpha7-2405... 110 10 months ago
2024.0.12.14514-alpha6-2405... 104 10 months ago
2024.0.12.14511 126 10 months ago
2024.0.12.14314 165 10 months ago
2024.0.12.14114 160 5/20/2024