Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility in PreStartupChecks #1046

Open
DavidBoike opened this issue Aug 8, 2022 · 0 comments
Open

More flexibility in PreStartupChecks #1046

DavidBoike opened this issue Aug 8, 2022 · 0 comments

Comments

@DavidBoike
Copy link
Member

The transport performs a PreStartupCheck to ensure it can connect to the SQL Server during endpoint startup. However, when authenticating via Group Managed Service Accounts (gMSA), the endpoint can't get valid connection parameters until after the Windows Service has started.

In this case, using NServiceBus.Extensions.Hosting isn't possible because the PreStartupCheck occurs before the service is started, and cannot succeed. Users needing to use gMSA in this scenario would need to use self-hosting to host NServiceBus, losing out on the other advantages of the .UseNServiceBus(…) extension method.

One option would be to add API that allows the user to either skip the PreStartupCheck or defer it until later in the endpoint startup process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant