RegistrationExtensionsInstancePerHttpRequestTLimit, TActivatorData, TStyle Method |
Note: This API is now obsolete.
Share one instance of the component within the context of a single
HTTP request.
Namespace:
Autofac.Integration.Mvc
Assembly:
Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax [ObsoleteAttribute("Instead of using the MVC-specific InstancePerHttpRequest, please switch to the InstancePerRequest shared registration extension from Autofac core.")]
public static IRegistrationBuilder<TLimit, TActivatorData, TStyle> InstancePerHttpRequest<TLimit, TActivatorData, TStyle>(
this IRegistrationBuilder<TLimit, TActivatorData, TStyle> registration,
params Object[] lifetimeScopeTags
)
<ExtensionAttribute>
<ObsoleteAttribute("Instead of using the MVC-specific InstancePerHttpRequest, please switch to the InstancePerRequest shared registration extension from Autofac core.")>
Public Shared Function InstancePerHttpRequest(Of TLimit, TActivatorData, TStyle) (
registration As IRegistrationBuilder(Of TLimit, TActivatorData, TStyle),
ParamArray lifetimeScopeTags As Object()
) As IRegistrationBuilder(Of TLimit, TActivatorData, TStyle)
Parameters
- registration
- Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TStyle
The registration to configure. - lifetimeScopeTags
- Type: SystemObject
Additional tags applied for matching lifetime scopes.
Type Parameters
- TLimit
- Registration limit type.
- TActivatorData
- Activator data type.
- TStyle
- Registration style.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TStyleA registration builder allowing further configuration of the component.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRegistrationBuilderTLimit,
TActivatorData,
TStyle. 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 See Also