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

Only exclude explicit registrations of IHostedService #4756

Conversation

desjoerd
Copy link
Contributor

@desjoerd desjoerd commented Feb 3, 2024

This fixes issues when a registered class or interface inherits from IHostedService because they where removed even when it would not run as an IHostedService.

Fixes #4722

Related pr #4523

This fixes issues when a registered class or interface inherits from IHostedService because they where removed even when it would not run as an IHostedService.
@RicoSuter RicoSuter merged commit 5e1a960 into RicoSuter:master Feb 4, 2024
1 check passed
@RicoSuter
Copy link
Owner

Thanks for the fix.

@desjoerd desjoerd deleted the feature/fix-too-greedy-hosted-service-removal branch February 5, 2024 09:46
lahma pushed a commit to lahma/NSwag that referenced this pull request Jun 13, 2024
This fixes issues when a registered class or interface inherits from IHostedService because they where removed even when it would not run as an IHostedService.
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.

Can't use NSwag.Build, because of cleaning of hosted services.
2 participants