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