You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of IBackgroundServiceHealthService uses a string (serviceName) to register and manage the health check state of a background service. As the background services are registered as singletons, we can use the type to make a unique service name.
Proposed Changes:
Implement IBackgroundServiceHealthService<TBackgroundService> that utilizes the type TBackgroundService to create a unique name to call into IBackgroundServiceHealthService.
Impact:
Increased ease of use as we reduce the boilerplate of finding the serviceName for each call.
Reduced chance of errors as the call can be made more consistent.
Added complexity for service registration of IBackgroundServiceHealthService<TBackgroundService>
The text was updated successfully, but these errors were encountered:
Background:
The current implementation of
IBackgroundServiceHealthService
uses a string (serviceName
) to register and manage the health check state of a background service. As the background services are registered as singletons, we can use the type to make a unique service name.Proposed Changes:
IBackgroundServiceHealthService<TBackgroundService>
that utilizes the typeTBackgroundService
to create a unique name to call intoIBackgroundServiceHealthService
.Impact:
serviceName
for each call.IBackgroundServiceHealthService<TBackgroundService>
The text was updated successfully, but these errors were encountered: