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: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
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 or IAutofacContinuationActionFilter for the specified controller.
Public methodStatic memberAsWebApiActionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter for the specified controller action.
Public methodStatic memberAsWebApiActionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter for the specified controller action.
Public methodStatic memberAsWebApiActionFilterForAllControllers
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter for all controllers.
Public methodStatic memberAsWebApiActionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter override for the specified controller.
Public methodStatic memberAsWebApiActionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionActionTController)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter override for the specified controller action.
Public methodStatic memberAsWebApiActionFilterOverrideForAllControllers
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter override for all controllers.
Public methodStatic memberAsWebApiActionFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiActionFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiActionFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiActionFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacActionFilter or IAutofacContinuationActionFilter, based on a predicate that filters which actions it is applied to.
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 memberAsWebApiAuthenticationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacAuthenticationFilter for the specified controller action.
Public methodStatic memberAsWebApiAuthenticationFilterForAllControllers
Sets the provided registration to act as an IAuthenticationFilter for all controllers.
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 memberAsWebApiAuthenticationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacAuthenticationFilter override for the specified controller action.
Public methodStatic memberAsWebApiAuthenticationFilterOverrideForAllControllers
Sets the provided registration to act as an IAuthenticationFilter override for all controllers.
Public methodStatic memberAsWebApiAuthenticationFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAuthenticationFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthenticationFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAuthenticationFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthenticationFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAuthenticationFilter, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthenticationFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAuthenticationFilter, based on a predicate that filters which actions it is applied to.
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 memberAsWebApiAuthorizationFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacAuthorizationFilter for the specified controller action.
Public methodStatic memberAsWebApiAuthorizationFilterForAllControllers
Sets the provided registration to act as an IAutofacAuthorizationFilter for all controllers.
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 memberAsWebApiAuthorizationFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacAuthorizationFilter override for the specified controller action.
Public methodStatic memberAsWebApiAuthorizationFilterOverrideForAllControllers
Sets the provided registration to act as an IAutofacAuthorizationFilter override for all controllers.
Public methodStatic memberAsWebApiAuthorizationFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacAuthorizationFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthorizationFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacAuthorizationFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthorizationFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacAuthorizationFilter, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiAuthorizationFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacAuthorizationFilter, based on a predicate that filters which actions it is applied to.
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 memberAsWebApiExceptionFilterForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacExceptionFilter for the specified controller action.
Public methodStatic memberAsWebApiExceptionFilterForAllControllers
Sets the provided registration to act as an IAutofacExceptionFilter for all controllers.
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 memberAsWebApiExceptionFilterOverrideForTController(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, ExpressionFuncTController, Task)
Sets the provided registration to act as an IAutofacExceptionFilter override for the specified controller action.
Public methodStatic memberAsWebApiExceptionFilterOverrideForAllControllers
Sets the provided registration to act as an IAutofacExceptionFilter override for all controllers.
Public methodStatic memberAsWebApiExceptionFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacExceptionFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiExceptionFilterOverrideWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacExceptionFilter override, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiExceptionFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncHttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacExceptionFilter, based on a predicate that filters which actions it is applied to.
Public methodStatic memberAsWebApiExceptionFilterWhere(IRegistrationBuilderObject, IConcreteActivatorData, SingleRegistrationStyle, FuncILifetimeScope, HttpActionDescriptor, Boolean, FilterScope)
Sets the provided registration to act as an IAutofacExceptionFilter, based on a predicate that filters which actions it is applied to.
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