ConfigureConfigurationSources Method
Definition
- Namespace
- Cuemon.Extensions.Hosting
- Assemblies
- Cuemon.Extensions.Hosting.dll
ConfigureConfigurationSources(IHostBuilder, Action<IHostEnvironment, IList<IConfigurationSource>>)
Provides a way to configure the sources of the IConfigurationBuilder.
public static IHostBuilder ConfigureConfigurationSources(this IHostBuilder hostBuilder, Action<IHostEnvironment, IList<IConfigurationSource>> configureDelegate)
Parameters
hostBuilderIHostBuilderThe IHostBuilder to extend.
configureDelegateAction<IHostEnvironment, IList<IConfigurationSource>>The delegate for configuring the Sources depending on the HostingEnvironment.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.
Exceptions
- ArgumentNullException
hostBuildercannot be null -or-configureDelegatecannot be null.