Table of Contents

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

services IServiceCollection

The 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

services IServiceCollection

The service collection.

pollingInterval TimeSpan

The delay between two checks of the store for modified sections.

Returns

IServiceCollection

The service collection, to chain calls.