Class HostApplicationBuilderExtensions
- Namespace
- Steeltoe.Bootstrap.AutoConfiguration
- Assembly
- Steeltoe.Bootstrap.AutoConfiguration.dll
public static class HostApplicationBuilderExtensions
- Inheritance
-
HostApplicationBuilderExtensions
- Inherited Members
Methods
AddSteeltoe(IHostApplicationBuilder)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder to configure.
Returns
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IHostApplicationBuilder, ILoggerFactory)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, ILoggerFactory loggerFactory)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder to configure.
loggerFactory
ILoggerFactoryUsed for internal logging. Pass Instance to disable logging, or use BootstrapLoggerFactory to write only to the console until logging is fully initialized.
Returns
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IHostApplicationBuilder, IReadOnlySet<string>)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder 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
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IHostApplicationBuilder, IReadOnlySet<string>, ILoggerFactory)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IHostApplicationBuilder AddSteeltoe(this IHostApplicationBuilder builder, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder 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
ILoggerFactoryUsed for internal logging. Pass Instance to disable logging, or use BootstrapLoggerFactory to write only to the console until logging is fully initialized.
Returns
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.