Table of Contents

ConfigureConfigurationSources Method

Definition

Namespace
Cuemon.Extensions.Hosting
Assemblies
Cuemon.Extensions.Hosting.dll
Source
src/Cuemon.Extensions.Hosting/HostBuilderExtensions.cs

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

hostBuilder IHostBuilder

The IHostBuilder to extend.

configureDelegate Action<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

hostBuilder cannot be null -or- configureDelegate cannot be null.