Share via


IHostConfigProvider Interface

Definition

Configuration is a two-step process where a IHostConfigProvider provides an initial service configuration provided by the host which then can be modified by a IConfigBuilder. This allows a model where a service can be initialized for a specific host environment and yet at the same time be configured to suit the needs of the service. The IHostConfigProvider is set up using the HostConfigProviderAttribute assembly attribute. Once selected, it calls into the provided IConfigBuilder to allow the service to participate in setting up Web API, OWIN, the dependency resolver, and any additional dependencies.

public interface IHostConfigProvider
type IHostConfigProvider = interface
Public Interface IHostConfigProvider
Derived

Methods

Initialize(IConfigBuilder)

Initialization is kicked off by ServiceConfig which determines the IHostConfigProvider to use and then calls this method on it. The provider will in turn call the given configBuilder so that the service can participate in all steps of the configuration.

Applies to