Class HostBuilderExtensions
- Namespace
- Steeltoe.Bootstrap.Autoconfig
- Assembly
- Steeltoe.Bootstrap.Autoconfig.dll
public static class HostBuilderExtensions
- Inheritance
-
HostBuilderExtensions
- Inherited Members
Methods
AddSteeltoe(IHostBuilder, 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 IHostBuilder AddSteeltoe(this IHostBuilder hostBuilder, IEnumerable<string> exclusions = null, ILoggerFactory loggerFactory = null)
Parameters
hostBuilder
IHostBuilderYour IHostBuilder
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