SimpleInjectorWebApiExtensionsEnableHttpRequestMessageTracking Method

Simple Injector
Makes the current HttpRequestMessage resolvable by calling GetCurrentHttpRequestMessage.

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

public static void EnableHttpRequestMessageTracking(
	this Container container,
	HttpConfiguration configuration
)

Parameters

container
Type: SimpleInjectorContainer
The container instance for which HttpRequestMessageTracking should be enabled.
configuration
Type: HttpConfiguration
The application's configuration.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Container. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when one of the arguments is a null reference (Nothing in VB).
See Also

Reference