RemoveConfigurationSource Method
Definition
- Namespace
- Cuemon.Extensions.Hosting
- Assemblies
- Cuemon.Extensions.Hosting.dll
RemoveConfigurationSource(IHostBuilder, Func<IHostEnvironment, IConfigurationSource, bool>)
Provides a way to remove a source of the IConfigurationBuilder.
public static IHostBuilder RemoveConfigurationSource(this IHostBuilder hostBuilder, Func<IHostEnvironment, IConfigurationSource, bool> predicate)
Parameters
hostBuilderIHostBuilderThe IHostBuilder to extend.
predicateFunc<IHostEnvironment, IConfigurationSource, bool>The function delegate that will determine if a source should be removed from the Sources depending on the HostingEnvironment.
Returns
- IHostBuilder
The same instance of the IHostBuilder for chaining.