ConfigOptions Class

Summary

Options for configuring a hosting environment
graph BT Type-->Base0["Object"] Type["ConfigOptions"] class Type type-node

Syntax

public class ConfigOptions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
ConfigOptions() Default Constructor
ConfigOptions(string) Default constructor with environment name

Properties

Name Value Summary
EnvironmentName string

Methods

Name Value Summary
AddApplicationConfiguration(ConfigOptionApplicationDelegate) ConfigOptions
Add an application configuration
AddEnvironmentConfiguration(ConfigOptionEnvironmentDelegate) ConfigOptions
Add an environment configuration
UseEnvironment(string) ConfigOptions
Set the expected environment name

Extension Methods

Name Value Summary
SetBackingValue<ConfigOptions, TV>(Expression<Func<ConfigOptions, TV>>, TV) T
Sets the backing value.
UseIni() ConfigOptions
Configures the options to inject ini files into the correct locations in app settings
UseJson() ConfigOptions
Configures the options to inject json files into the correct locations in app settings
UseYaml() ConfigOptions
Configures the options to inject yaml files into the correct locations in app settings
UseYml() ConfigOptions
Configures the options to inject yaml files into the correct locations in app settings
With<ConfigOptions, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.