Click or drag to resize

RegistrationExtensionsOverrideWebApiAuthorizationFilterForTController Method (ContainerBuilder)

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

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
public static void OverrideWebApiAuthorizationFilterFor<TController>(
	this ContainerBuilder builder
where TController : IHttpController


Type: AutofacContainerBuilder
The container builder.

Type Parameters


[Missing <typeparam name="TController"/> documentation for "M:Autofac.Integration.WebApi.RegistrationExtensions.OverrideWebApiAuthorizationFilterFor``1(Autofac.ContainerBuilder)"]

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