Class ServiceCollectionExtensions
- Namespace
- Arc4u.Configuration.Store
- Assembly
- Arc4u.Configuration.Store.dll
Extension methods to register the service that keeps the configuration in sync with the section store.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddSectionStoreService(IServiceCollection)
Add the monitoring service that will track the changes in the store with a default polling interval (15 seconds).
public static IServiceCollection AddSectionStoreService(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The service collection, to chain calls.
AddSectionStoreService(IServiceCollection, TimeSpan)
Add the monitoring service that will track the changes in the store
public static IServiceCollection AddSectionStoreService(this IServiceCollection services, TimeSpan pollingInterval)
Parameters
servicesIServiceCollectionThe service collection.
pollingIntervalTimeSpanThe delay between two checks of the store for modified sections.
Returns
- IServiceCollection
The service collection, to chain calls.