Click or drag to resize

RegistrationExtensionsOverrideAuthorizationFilterForTController Method (ContainerBuilder, ExpressionActionTController)

Sets the provided registration to act as an IOverrideFilter for the specified controller action.

Namespace:  Autofac.Integration.Mvc
Assembly:  Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax
public static void OverrideAuthorizationFilterFor<TController>(
	this ContainerBuilder builder,
	Expression<Action<TController>> actionSelector
)
where TController : IController

Parameters

builder
Type: AutofacContainerBuilder
The container builder.
actionSelector
Type: System.Linq.ExpressionsExpressionActionTController
The action selector.

Type Parameters

TController

[Missing <typeparam name="TController"/> documentation for "M:Autofac.Integration.Mvc.RegistrationExtensions.OverrideAuthorizationFilterFor``1(Autofac.ContainerBuilder,System.Linq.Expressions.Expression{System.Action{``0}})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContainerBuilder. 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