WithEnvironment Method
WithEnvironment(string)
Sets the environment name to use when building the options.
Declaration
public TBuilder WithEnvironment(string environmentName)
Parameters
| string | environmentName | The environment name. |
Returns
| TBuilder | This options builder. |
Remarks
By default, when not provided, the name is determined the standard .NET way,
i.e. from the DOTNET_ENVIRONMENT and ASPNETCORE_ENVIRONMENT variables and,
if not specified, defaults to "Production".