Extension methods for integrating Simple Injector with ASP.NET Web API applications.
Inheritance Hierarchy
SimpleInjectorSimpleInjectorWebApiExtensions
Namespace: SimpleInjector
Assembly: SimpleInjector.Integration.WebApi (in SimpleInjector.Integration.WebApi.dll) Version: 5.3.0
Syntax
The SimpleInjectorWebApiExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
EnableHttpRequestMessageTracking |
Makes the current HttpRequestMessage resolvable by calling
GetCurrentHttpRequestMessage.
| |
GetCurrentHttpRequestMessage |
Retrieves the HttpRequestMessage instance for the current request.
| |
RegisterWebApiControllers(Container, HttpConfiguration) |
Registers the Web API IHttpController types that available for the application. This
method uses the configured IAssembliesResolver and
IHttpControllerTypeResolver to determine which controller types to register.
| |
RegisterWebApiControllers(Container, HttpConfiguration, IEnumerableAssembly) |
Registers the Web API IHttpController types that available for the application. This
method uses the configured IHttpControllerTypeResolver to determine which controller
types to register.
| |
RegisterWebApiControllers(Container, HttpConfiguration, Assembly) |
Registers the Web API IHttpController types that available for the application. This
method uses the configured IHttpControllerTypeResolver to determine which controller
types to register.
|
See Also