Class WebHostBuilderExtensions
- Namespace
- Steeltoe.Bootstrap.Autoconfig
- Assembly
- Steeltoe.Bootstrap.Autoconfig.dll
public static class WebHostBuilderExtensions
- Inheritance
-
WebHostBuilderExtensions
- Inherited Members
Methods
AddSteeltoe(IWebHostBuilder, IEnumerable<string>, ILoggerFactory)
Automatically configure Steeltoe packages that have been added as NuGet references.
PLEASE NOTE: No extensions to IApplicationBuilder will be configured!public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder hostBuilder, IEnumerable<string> exclusions = null, ILoggerFactory loggerFactory = null)
Parameters
hostBuilder
IWebHostBuilderYour IWebHostBuilder
exclusions
IEnumerable<string>A list of assemblies to exclude from auto-configuration. For ease of use, select from SteeltoeAssemblies
loggerFactory
ILoggerFactoryFor logging within auto-configuration