Class WebHostBuilderExtensions
- Namespace
- Steeltoe.Bootstrap.AutoConfiguration
- Assembly
- Steeltoe.Bootstrap.AutoConfiguration.dll
public static class WebHostBuilderExtensions
- Inheritance
-
WebHostBuilderExtensions
- Inherited Members
Methods
AddSteeltoe(IWebHostBuilder)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder)
Parameters
builder
IWebHostBuilderThe IWebHostBuilder to configure.
Returns
- IWebHostBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IWebHostBuilder, ILoggerFactory)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, ILoggerFactory loggerFactory)
Parameters
builder
IWebHostBuilderThe IWebHostBuilder 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
- IWebHostBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IWebHostBuilder, IReadOnlySet<string>)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude)
Parameters
builder
IWebHostBuilderThe IWebHostBuilder 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
- IWebHostBuilder
The incoming
builder
so that additional calls can be chained.
AddSteeltoe(IWebHostBuilder, IReadOnlySet<string>, ILoggerFactory)
Automatically configures Steeltoe packages that have been added to your project as NuGet references.
public static IWebHostBuilder AddSteeltoe(this IWebHostBuilder builder, IReadOnlySet<string> assemblyNamesToExclude, ILoggerFactory loggerFactory)
Parameters
builder
IWebHostBuilderThe IWebHostBuilder 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
- IWebHostBuilder
The incoming
builder
so that additional calls can be chained.