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
servicesIServiceCollectionThe services of the component.
schemaSettingsSchemaThe settings, of which the live ones of
sectionare the object's.sectionstringThe key of the section the object is bound from, under Root.
Returns
Type Parameters
TOptionsThe settings type.