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.Web
Assembly:
Autofac.Integration.Web (in Autofac.Integration.Web.dll) Version: 6.0.0+0b24e3a20aaeba340141e7205a9b7643b9d6cc54
Syntax [ObsoleteAttribute("Instead of using the web-forms-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 web-forms-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