Class EnvBinder
Allows binding strongly typed objects to configuration values.
Implements
Inherited Members
Namespace: DotEnv.Core
Assembly: DotEnv.Core.dll
Syntax
public class EnvBinder : IEnvBinder
Constructors
Name | Description |
---|---|
EnvBinder() | Initializes a new instance of the EnvBinder class. |
EnvBinder(IEnvironmentVariablesProvider) | Initializes a new instance of the EnvBinder class with environment variables provider. |
Methods
Name | Description |
---|---|
AllowBindNonPublicProperties() | Allows binding of non-public properties. This method tells the binder that it can set non-public properties. |
Bind<TSettings>() | Binds the instance of the environment variables provider to a new instance of type TSettings. |
Bind<TSettings>(out EnvValidationResult) | Binds the instance of the environment variables provider to a new instance of type TSettings. |
IgnoreException() | Disables/ignores BinderException. This method tells the binder not to throw an exception when it encounters one or more errors. |