Table of Contents

Class HostBuilderExtensions

Namespace
Steeltoe.Bootstrap.AutoConfiguration
Assembly
Steeltoe.Bootstrap.AutoConfiguration.dll
public static class HostBuilderExtensions
Inheritance
HostBuilderExtensions
Inherited Members

Methods

AddSteeltoe(IHostBuilder)

Automatically configures Steeltoe packages that have been added to your project as NuGet references.

public static IHostBuilder AddSteeltoe(this IHostBuilder builder)

Parameters

builder IHostBuilder

The IHostBuilder to configure.

Returns

IHostBuilder

The incoming builder so that additional calls can be chained.

AddSteeltoe(IHostBuilder, ILoggerFactory)

Automatically configures Steeltoe packages that have been added to your project as NuGet references.

public static IHostBuilder AddSteeltoe(this IHostBuilder builder, ILoggerFactory loggerFactory)

Parameters

builder IHostBuilder

The IHostBuilder to configure.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging, or use BootstrapLoggerFactory to write only to the console until logging is fully initialized.

Returns

IHostBuilder

The incoming builder so that additional calls can be chained.

AddSteeltoe(IHostBuilder, IReadOnlySet<string>)

Automatically configures Steeltoe packages that have been added to your project as NuGet references.

public static IHostBuilder AddSteeltoe(this IHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)

Parameters

builder IHostBuilder

The IHostBuilder to configure.

assemblyNamesToExclude IReadOnlySet<string>

The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in SteeltoeAssemblyNames.

Returns

IHostBuilder

The incoming builder so that additional calls can be chained.

AddSteeltoe(IHostBuilder, IReadOnlySet<string>, ILoggerFactory)

Automatically configures Steeltoe packages that have been added to your project as NuGet references.

public static IHostBuilder AddSteeltoe(this IHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)

Parameters

builder IHostBuilder

The IHostBuilder to configure.

assemblyNamesToExclude IReadOnlySet<string>

The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in SteeltoeAssemblyNames.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging, or use BootstrapLoggerFactory to write only to the console until logging is fully initialized.

Returns

IHostBuilder

The incoming builder so that additional calls can be chained.