共用方式為


IBootstrapper Interface

Definition

Provides an abstraction defining the initial entry point for a service. At startup, the host looks for an implementation of the IBootstrapper interface and kicks off the configuration process by calling Initialize. It is then the bootstrapper's responsibility to call ServiceConfig which will then kick off the configuration process starting with the IHostConfigProvider, then move to IExtensionConfigProvider implementations, and finally calling the application code for final configuration. If there is no IBootstrapper implementation then the host looks for a static class called WebApiConfig and expects a static method called Register.

public interface IBootstrapper
type IBootstrapper = interface
Public Interface IBootstrapper

Methods

Initialize()

Defines the entry point for the application. It is the responsibility of this entry point to call ServiceConfig which will start the configuration of the application.

Applies to