Table of Contents

Class ConfigurationSettingsExtension

Namespace
Arc4u.Configuration
Assembly
Arc4u.Configuration.dll

Extension methods to register a section of the configuration as named key/value settings.

public static class ConfigurationSettingsExtension
Inheritance
ConfigurationSettingsExtension
Inherited Members

Methods

ConfigureSettings(IServiceCollection, string, IConfiguration, string)

Register a key/value collection with IOption model, only taking the properties that map to strings.

public static IKeyValueSettings ConfigureSettings(this IServiceCollection services, string name, IConfiguration configuration, string sectionName)

Parameters

services IServiceCollection

The service collection IServiceCollection

name string

The name to get the back the DIctionary.

configuration IConfiguration

IConfiguration to read the settings.

sectionName string

The section name containing the keys and values.

Returns

IKeyValueSettings

Exceptions

ArgumentNullException
ConfigurationException