Table of Contents

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 IHostBuilder

Your IHostBuilder

exclusions IEnumerable<string>

A list of assemblies to exclude from auto-configuration. For ease of use, select from SteeltoeAssemblies

loggerFactory ILoggerFactory

For logging within auto-configuration

Returns

IHostBuilder