RegistrationExtensionsAsAuthorizationFilterForTController Method (IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, Int32) |
Namespace:
Autofac.Integration.Mvc
Assembly:
Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax public static IRegistrationBuilder<Object, IConcreteActivatorData, SingleRegistrationStyle> AsAuthorizationFilterFor<TController>(
this IRegistrationBuilder<Object, IConcreteActivatorData, SingleRegistrationStyle> registration,
int order = -1
)
where TController : IController
<ExtensionAttribute>
Public Shared Function AsAuthorizationFilterFor(Of TController As IController) (
registration As IRegistrationBuilder(Of Object, IConcreteActivatorData, SingleRegistrationStyle),
Optional order As Integer = -1
) As IRegistrationBuilder(Of Object, IConcreteActivatorData, SingleRegistrationStyle)
Parameters
- registration
- Type: Autofac.BuilderIRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle
The registration. - order (Optional)
- Type: SystemInt32
The order in which the filter is applied.
Type Parameters
- TController
- The type of the controller.
Return Value
Type:
IRegistrationBuilderObject,
IConcreteActivatorData,
SingleRegistrationStyleA 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
IRegistrationBuilderObject,
IConcreteActivatorData,
SingleRegistrationStyle. 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).
See Also