Skip to content

Add overloads to UseAzureServiceBus for enhanced configuration flexibility.#100

Merged
sfmskywalker merged 4 commits intodevelop/3.6.0from
enh/mt-asb-api
Dec 19, 2025
Merged

Add overloads to UseAzureServiceBus for enhanced configuration flexibility.#100
sfmskywalker merged 4 commits intodevelop/3.6.0from
enh/mt-asb-api

Conversation

@sfmskywalker
Copy link
Member

@sfmskywalker sfmskywalker commented Dec 18, 2025

The overload provides a convenient way to provide a manually created ASB client, offering greater control to the host application. For example, the host application can now create an ASB client using a TokenCredential, rather than being limited to passing in a connection string.

Copilot AI review requested due to automatic review settings December 18, 2025 15:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Azure Service Bus integration by adding method overloads to UseAzureServiceBus for more flexible configuration options. However, the implementation contains critical syntax errors that prevent compilation.

Key Changes:

  • Adds three overloads for UseAzureServiceBus to support different configuration scenarios: connection string, custom clients with host address, and direct feature configuration
  • Introduces new imports for Azure.Messaging.ServiceBus and MassTransit namespaces

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sfmskywalker and others added 3 commits December 18, 2025 17:13
…eBus/Extensions/ModuleExtensions.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Ensures correct configuration of the Azure Service Bus transport bus by using the += operator instead of conditional assignment.
This prevents potential issues where the configuration might be overwritten.
Also, initializes the ConfigureTransportBus action to prevent null reference exceptions.
Updated `AzureServiceBusOptions` and `ServiceBusAdministrationClientFactory` to use `+=` instead of direct assignment. This ensures proper appending of handlers and avoids overwriting existing configurations.
@sfmskywalker sfmskywalker merged commit 047456e into develop/3.6.0 Dec 19, 2025
6 checks passed
@sfmskywalker sfmskywalker deleted the enh/mt-asb-api branch December 19, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants