Click or drag to resize

RegistrationExtensions Class

Adds registration syntax to the ContainerBuilder type.
Inheritance Hierarchy
SystemObject
  Autofac.Integration.WebApiRegistrationExtensions

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 4.2.0-CI-258
Syntax
public static class RegistrationExtensions

The RegistrationExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAsModelBinderForTypesTLimit, TActivatorData, TRegistrationStyle
Sets a provided registration to act as an IModelBinder for the specified list of types.
Public methodStatic memberAsWebApiActionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacActionFilter for the specified controller.
Public methodStatic memberAsWebApiActionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacActionFilter for the specified controller action.
Public methodStatic memberAsWebApiActionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacActionFilter override for the specified controller.
Public methodStatic memberAsWebApiActionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacActionFilter override for the specified controller action.
Public methodStatic memberAsWebApiAuthenticationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacAuthenticationFilter for the specified controller.
Public methodStatic memberAsWebApiAuthenticationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacAuthenticationFilter for the specified controller action.
Public methodStatic memberAsWebApiAuthenticationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacAuthenticationFilter override for the specified controller.
Public methodStatic memberAsWebApiAuthenticationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacAuthenticationFilter override for the specified controller action.
Public methodStatic memberAsWebApiAuthorizationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacAuthorizationFilter for the specified controller.
Public methodStatic memberAsWebApiAuthorizationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacAuthorizationFilter for the specified controller action.
Public methodStatic memberAsWebApiAuthorizationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacAuthorizationFilter override for the specified controller.
Public methodStatic memberAsWebApiAuthorizationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacAuthorizationFilter override for the specified controller action.
Public methodStatic memberAsWebApiExceptionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacExceptionFilter for the specified controller.
Public methodStatic memberAsWebApiExceptionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacExceptionFilter for the specified controller action.
Public methodStatic memberAsWebApiExceptionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacExceptionFilter override for the specified controller.
Public methodStatic memberAsWebApiExceptionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacExceptionFilter override for the specified controller action.
Public methodStatic memberInstancePerApiControllerTypeTLimit, TActivatorData, TStyle(IRegistrationBuilderTLimit, TActivatorData, TStyle, Type)
Share one instance of the component within the context of a controller type.
Public methodStatic memberInstancePerApiControllerTypeTLimit, TActivatorData, TStyle(IRegistrationBuilderTLimit, TActivatorData, TStyle, Type, Boolean)
Share one instance of the component within the context of a controller type.
Public methodStatic memberInstancePerApiRequestTLimit, TActivatorData, TStyle Obsolete.
Share one instance of the component within the context of a single ApiController request.
Public methodStatic memberOverrideWebApiActionFilterForTController(ContainerBuilder)
Sets the provided registration to act as an IOverrideFilter for the specified controller.
Public methodStatic memberOverrideWebApiActionFilterForTController(ContainerBuilder, ExpressionActionTController)
Sets the provided registration to act as an IOverrideFilter for the specified controller action.
Public methodStatic memberOverrideWebApiAuthenticationFilterForTController(ContainerBuilder)
Sets the provided registration to act as an IOverrideFilter for the specified controller.
Public methodStatic memberOverrideWebApiAuthenticationFilterForTController(ContainerBuilder, ExpressionActionTController)
Sets the provided registration to act as an IOverrideFilter for the specified controller action.
Public methodStatic memberOverrideWebApiAuthorizationFilterForTController(ContainerBuilder)
Sets the provided registration to act as an IOverrideFilter for the specified controller.
Public methodStatic memberOverrideWebApiAuthorizationFilterForTController(ContainerBuilder, ExpressionActionTController)
Sets the provided registration to act as an IOverrideFilter for the specified controller action.
Public methodStatic memberOverrideWebApiExceptionFilterForTController(ContainerBuilder)
Sets the provided registration to act as an IOverrideFilter for the specified controller.
Public methodStatic memberOverrideWebApiExceptionFilterForTController(ContainerBuilder, ExpressionActionTController)
Sets the provided registration to act as an IOverrideFilter for the specified controller action.
Public methodStatic memberRegisterApiControllers(ContainerBuilder, Assembly)
Register types in the provided assemblies that implement IHttpController and match the default type name suffix of "Controller".
Public methodStatic memberRegisterApiControllers(ContainerBuilder, String, Assembly)
Register types in the provided assemblies that implement IHttpController and match the provided type name suffix.
Public methodStatic memberRegisterHttpRequestMessage
Makes the current HttpRequestMessage resolvable through the dependency scope.
Public methodStatic memberRegisterWebApiFilterProvider
Public methodStatic memberRegisterWebApiModelBinderProvider
Public methodStatic memberRegisterWebApiModelBinders Obsolete.
Register types that implement IModelBinder in the provided assemblies.
Top
See Also