Class ServiceCollectionExtensions
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: DotEnv.Extensions.Microsoft.DI.dll
Syntax
public static class ServiceCollectionExtensions
Methods
| Name | Description |
|---|---|
| AddCustomEnv(IServiceCollection, String, String) | Adds the environment vars based on the environment (development, test, staging or production). This registers IEnvReader as a singleton and calls the LoadEnv() method. |
| AddCustomEnv<TSettings>(IServiceCollection, String, String) | Adds the environment vars based on the environment (development, test, staging or production).
This registers |
| AddDotEnv(IServiceCollection) | Adds the environment vars using a service. This registers IEnvReader as a singleton and calls the Load() method. |
| AddDotEnv(IServiceCollection, String[]) | Adds the environment vars using a service. This registers IEnvReader as a singleton and calls the Load() method. |
| AddDotEnv<TSettings>(IServiceCollection) | Adds the environment vars using a service.
This registers |
| AddDotEnv<TSettings>(IServiceCollection, String[]) | Adds the environment vars using a service.
This registers |