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
builderIHostBuilderThe IHostBuilder to configure.
Returns
- IHostBuilder
The incoming
builderso 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
builderIHostBuilderThe IHostBuilder to configure.
loggerFactoryILoggerFactoryUsed 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
builderso 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
builderIHostBuilderThe IHostBuilder to configure.
assemblyNamesToExcludeIReadOnlySet<string>The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in SteeltoeAssemblyNames.
Returns
- IHostBuilder
The incoming
builderso 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
builderIHostBuilderThe IHostBuilder to configure.
assemblyNamesToExcludeIReadOnlySet<string>The set of assembly names to exclude from autoconfiguration. For ease of use, select from the constants in SteeltoeAssemblyNames.
loggerFactoryILoggerFactoryUsed 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
builderso that additional calls can be chained.