Class ServiceProviderExtensions
- Namespace
- OpenSettings.Extensions
- Assembly
- OpenSettings.dll
Provides extension methods for IServiceProvider to facilitate managing instance status during application startup and shutdown.
This class includes the UseOpenSettings(IServiceProvider) method that helps update the status of the instance
when the application starts and stops. It's primarily designed for non-ASP.NET applications.
For ASP.NET applications, it is recommended to use the corresponding extension method specific to IApplicationBuilder
for managing application startup and shutdown.
public static class ServiceProviderExtensions
- Inheritance
-
ServiceProviderExtensions
- Inherited Members
Methods
UseOpenSettings(IServiceProvider)
Updates the instance status during application startup and shutdown.
This method is for non-ASP.NET applications. For ASP.NET, use an IApplicationBuilder
-based extension instead.
Registers actions to mark the instance as active on startup and inactive on shutdown.
public static void UseOpenSettings(this IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProviderThe IServiceProvider to resolve services for updating the instance status.