useEnvironment method
Specify the environment to be used by the host.
To avoid the environment being overwritten by a default value, ensure this is called after defaults are configured.
Implementation
HostBuilder useEnvironment(String environment) => configureHostConfiguration(
(configBuilder) => configBuilder.addInMemoryCollection(
[
MapEntry<String, String>(
host_defaults.environmentKey,
environment,
)
],
),
);