Table of Contents

Class LiveSettingsServiceCollectionExtensions

Namespace
RDCore.SDK.Server.Configuration
Assembly
RDCore.SDK.dll

Registers the settings objects of a component whose live settings are set while it runs (ILiveSettings).

public static class LiveSettingsServiceCollectionExtensions
Inheritance
LiveSettingsServiceCollectionExtensions
Inherited Members

Methods

AddLiveSettings<TOptions>(IServiceCollection, SettingsSchema, string)

Registers the instance of IOptions<TOptions> as one whose live settings are set while the component runs.

public static IServiceCollection AddLiveSettings<TOptions>(this IServiceCollection services, SettingsSchema schema, string section) where TOptions : class

Parameters

services IServiceCollection

The services of the component.

schema SettingsSchema

The settings, of which the live ones of section are the object's.

section string

The key of the section the object is bound from, under Root.

Returns

IServiceCollection

Type Parameters

TOptions

The settings type.