SimpleInjectorWebApiExtensions Class

Simple Injector
Extension methods for integrating Simple Injector with ASP.NET Web API applications.
Inheritance Hierarchy

SystemObject
  SimpleInjectorSimpleInjectorWebApiExtensions

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.WebApi (in SimpleInjector.Integration.WebApi.dll) Version: 4.0.0
Syntax

public static class SimpleInjectorWebApiExtensions

The SimpleInjectorWebApiExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberEnableHttpRequestMessageTracking
Makes the current HttpRequestMessage resolvable by calling GetCurrentHttpRequestMessage.
Public methodStatic memberGetCurrentHttpRequestMessage
Retrieves the HttpRequestMessage instance for the current request.
Public methodStatic memberRegisterWebApiControllers(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.
Public methodStatic memberRegisterWebApiControllers(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.
Public methodStatic memberRegisterWebApiControllers(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.
Top
See Also

Reference