Edytuj

Udostępnij za pośrednictwem


SiloHostBuilderExtensions Class

Definition

Extensions for ISiloHostBuilder instances.

public static class SiloHostBuilderExtensions
type SiloHostBuilderExtensions = class
Public Module SiloHostBuilderExtensions
Inheritance
SiloHostBuilderExtensions

Methods

Configure<TOptions>(ISiloHostBuilder, Action<TOptions>)

Registers an action used to configure a particular type of options.

Configure<TOptions>(ISiloHostBuilder, IConfiguration)

Registers a configuration instance which TOptions will bind against.

ConfigureAppConfiguration(ISiloHostBuilder, Action<IConfigurationBuilder>)

Sets up the configuration for the remainder of the build process and application. This can be called multiple times and the results will be additive. The results will be available at Configuration for subsequent operations, as well as in Services.

ConfigureApplicationParts(ISiloHostBuilder, Action<IApplicationPartManager>)

Configures the ApplicationPartManager using the given Action<T>.

ConfigureLogging(ISiloHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

ConfigureLogging(ISiloHostBuilder, Action<ILoggingBuilder>)

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

ConfigureServices(ISiloHostBuilder, Action<IServiceCollection>)

Adds services to the container. This can be called multiple times and the results will be additive.

GetApplicationPartManager(ISiloHostBuilder)

Returns the ApplicationPartManager for this instance.

UseEnvironment(ISiloHostBuilder, String)

Specify the environment to be used by the host.

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

Specifies how the IServiceProvider for this silo is configured.

UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)

Specifies how the IServiceProvider for this silo is configured.

Applies to