共用方式為


IExtensionConfigProvider Interface

Definition

3rd party extensions can participate in the configuration process by hooking in as part of the service configuration. This allows 3rd party extensions to add their dependencies to the dependency resolver so that they can leverage the power of dependency injection as well. By declaring an assembly-level ExtensionConfigProviderAttribute containing a type implementing the IExtensionConfigProvider interface, the extension will get called as part of the configuration building process.

public interface IExtensionConfigProvider
type IExtensionConfigProvider = interface
Public Interface IExtensionConfigProvider
Derived

Methods

Initialize(HttpConfiguration, ContainerBuilder)

Initializes the extension.

Applies to