-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Document counterintuitive AddHostedService behavior #9141
Conversation
See dotnet/runtime#52747 for discussion about this issue.
Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection Issue DetailsSee dotnet/runtime#38751 for discussion about this issue. SummaryAdd documentation describing the behavior when multiple services (of the same class) are added when calling
|
Learn Build status updates of commit ecf55f2: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. For any questions, please:
|
Learn Build status updates of commit 671b5ae:
|
File | Status | Preview URL | Details |
---|---|---|---|
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml | View | Details |
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
- Line 0, Column 0: [Warning: xref-not-found]
Cross reference not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection.AddSingleton'.
- Line 0, Column 0: [Warning: xref-not-found]
Cross reference not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection.AddSingleton'.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:
- Try searching the learn.microsoft.com contributor guides
- Post your question in the Learn support channel
Learn Build status updates of commit da969a3:
|
File | Status | Preview URL | Details |
---|---|---|---|
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml | View | Details |
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
- Line 0, Column 0: [Warning: xref-not-found]
Cross reference not found: 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton'.
- Line 0, Column 0: [Warning: xref-not-found]
Cross reference not found: 'Microsoft.Extensions.DependencyInjection.ServiceCollectionServiceExtensions.AddSingleton'.
For more details, please refer to the build report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:
- Try searching the learn.microsoft.com contributor guides
- Post your question in the Learn support channel
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
Learn Build status updates of commit 1bded2d: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. For any questions, please:
|
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Learn Build status updates of commit 34bfecf: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. For any questions, please:
|
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
xml/Microsoft.Extensions.DependencyInjection/ServiceCollectionHostedServiceExtensions.xml
Outdated
Show resolved
Hide resolved
Learn Build status updates of commit 0b74fd7: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @MichaelDeutschCoding for the contribution and thank you @gewarren for review.
Thanks so much for correcting and finishing this for me. |
See dotnet/runtime#38751 for discussion about this issue.
Summary
Add documentation describing the behavior when multiple services (of the same class) are added when calling
Microsoft.Extensions.DependencyInjection.IServiceCollection.AddHostedService<THostedService>
.