Introduce AddNServiceBusEndpointInstaller and deprecate old installer APIs#7683
Merged
Introduce AddNServiceBusEndpointInstaller and deprecate old installer APIs#7683
Conversation
…nning and transport reuse
…and `AddNServiceBusEndpointInstaller`
… and `AddNServiceBusEndpointInstaller`
…nhance documentation, and consolidate registration retrieval methods.
…der and therefore not shipped
andreasohlund
approved these changes
Apr 2, 2026
DavidBoike
approved these changes
Apr 2, 2026
bording
approved these changes
Apr 2, 2026
| /// This bypasses the default safeguards that isolate endpoints, allowing resolution of all services including | ||
| /// globally shared ones. | ||
| /// </para> | ||
| public static void AddNServiceBusEndpointInstaller(this IServiceCollection services, EndpointConfiguration endpointConfiguration, object? endpointIdentifier = null) |
Member
There was a problem hiding this comment.
I'm not entirely happy with the amount of implementation duplication going on in here compared to AddNServiceBusEndpoint, but things are just subtly different enough that I also don't see an easy way to solve it.
Contributor
Author
There was a problem hiding this comment.
Yeah same for me but I figured abstracting would be worse
danielmarbach
commented
Apr 2, 2026
| @@ -1,18 +0,0 @@ | |||
| namespace NServiceBus; | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a dedicated hosting API for running endpoint installers through
IServiceCollectionand begins the deprecation of the older installer-specific APIs.The goal is to make installer execution fit better into the hosting model already used for endpoints, provide a clearer and more discoverable API, and establish a migration path away from the older installer patterns.
What changed
AddNServiceBusEndpointInstaller(...)as a new way to register installer-only endpoint execution in Microsoft.Extensions.Hosting-based setups