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

Introduce BackgroundService utility class in StartupHook #6655

Conversation

clguiman
Copy link
Contributor

Summary

As part of the move from HostingStartup to StartupHook we need a mechanism similar to Microsoft.Extensions.Hosting.BackgroundService to manage the lifetime of ParameterCapturingService.

This PR adds the Microsoft.Diagnostics.Monitoring.StartupHook.BackgroundService abstract class. ParameterCapturingService can derive from it and DiagnosticsBootstrapper can instantiate and start the service. The integration will be part of a separate PR when I'll move all the files to the StartupHook project.

Release Notes Entry

@clguiman clguiman requested a review from a team as a code owner May 16, 2024 13:07
@schmittjoseph schmittjoseph merged commit 4e7f726 into dotnet:feature/parameter-capturing/startup-hook May 22, 2024
26 checks passed
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.

3 participants