Autofac.Integration.Mvc
Autofac implementation of the interface.
Initializes a new instance of the class.
The container that nested lifetime scopes will be create from.
Initializes a new instance of the class.
The container that nested lifetime scopes will be create from.
Action on a
that adds component registations visible only in nested lifetime scopes.
Initializes a new instance of the class.
The container that nested lifetime scopes will be create from.
A implementation for
creating new lifetime scopes.
Initializes a new instance of the class.
The container that nested lifetime scopes will be create from.
A implementation for
creating new lifetime scopes.
Action on a
that adds component registations visible only in nested lifetime scopes.
Get a single instance of a service.
Type of the service.
The single instance if resolved; otherwise, null.
Gets all available instances of a services.
Type of the service.
The list of instances if any were resolved; otherwise, an empty list.
Gets the Autofac implementation of the dependency resolver.
The lifetime containing components for processing the current HTTP request.
Gets the application container that was provided to the constructor.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to The dependency resolver is not of type '{0}' and does not appear to be wrapped using DynamicProxy from the Castle Project. This issue could be the result of a change in the DynamicProxy implementation or the use of a different proxy library to wrap the dependency resolver..
Defines a filter provider for filter attributes that performs property injection.
Initializes a new instance of the class.
The false constructor parameter passed to base here ensures that attribute instances are not cached.
Aggregates the filters from all of the filter providers into one collection.
The controller context.
The action descriptor.
The collection filters from all of the filter providers with properties injected.
Thrown if is .
Autofac implementation of the interface.
Metadata key for the supported model types.
Gets the model binder associated with the provided model type.
Type of the model.
An instance if found; otherwise, null.
Allows other filters to be overriden at the control and action level.
Dependency injection module that registers abstractions for common
web application properties.
This is primarily used during
application startup (in Global.asax) to register
mappings from commonly referenced contextual application properties
to their corresponding abstraction.
The following mappings are made:
Common Construct
Abstraction
-
HttpContext.Current
-
HttpContext.Current.Application
-
HttpContext.Current.Request
-
HttpContext.Current.Request.Browser
-
HttpContext.Current.Request.Files
-
HttpContext.Current.Request.RequestContext
-
HttpContext.Current.Response
-
HttpContext.Current.Response.Cache
-
HttpContext.Current.Server
-
HttpContext.Current.Session
-
HostingEnvironment.VirtualPathProvider
In addition, the type is registered
for construction based on the current .
The lifetime for each of these items is one web request.
Registers web abstractions with dependency injection.
The in which registration
should take place.
This method registers mappings between common current context-related
web constructs and their associated abstract counterparts. See
for the complete
list of mappings that get registered.
Metadata interface for filter registrations.
Gets the type of the controller.
Gets the filter scope.
Gets the method info.
Gets the order in which the filter is applied.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to The action method Expression is invalid. It should consist only of a Method call to a controller action method..
Looks up a localized string similar to Type list may not be empty or contain all null values..
Looks up a localized string similar to The type '{0}' must be assignable to the filter type '{1}'..
Creates and disposes HTTP request based lifetime scopes.
The provider is notified when a HTTP request ends by the .
Implementors are able to control the creation of nested lifetime scopes.
Gets a nested lifetime scope that services can be resolved from.
A configuration action that will execute during lifetime scope creation.
A new or existing nested lifetime scope.
Ends the current lifetime scope.
Gets the global, application-wide container.
Initializes a new instance of the class.
The parent container, usually the application container.
Gets a nested lifetime scope that services can be resolved from.
A configuration action that will execute during lifetime scope creation.
A new or existing nested lifetime scope.
Ends the current HTTP request lifetime scope.
Gets a lifetime scope for the current HTTP request. This method can be overridden
to alter the way that the life time scope is constructed.
A configuration action that will execute during lifetime scope creation.
A new lifetime scope for the current HTTP request.
Gets the global, application-wide container.
Injects services from the container into the ASP.NET MVC invocation pipeline.
This is a Async Controller Action Invoker which can be used for both async and non-async scenarios
Action methods can include parameters that will be resolved from the
container, along with regular parameters.
Gets the parameter value.
The controller context.The parameter descriptor.
The parameter value.
Thrown if is .
Indicates what types a model binder supports.
Initializes a new instance of the class.
The target types.
Initializes a new instance of the class.
The target type.
Gets the target types.
Container class for the ASP.NET application startup method.
Performs ASP.NET application startup logic early in the pipeline.
Extends with methods to support ASP.NET MVC.
Share one instance of the component within the context of a single
HTTP request.
Registration limit type.
Registration style.
Activator data type.
The registration to configure.
Additional tags applied for matching lifetime scopes.
A registration builder allowing further configuration of the component.
Thrown if is .
Register types that implement IController in the provided assemblies.
The container builder.
Assemblies to scan for controllers.
Registration builder allowing the controller components to be customised.
Inject an IActionInvoker into the controller's ActionInvoker property.
Limit type.
Activator data.
Registration style.
The registration builder.
A registration builder.
Inject an IActionInvoker into the controller's ActionInvoker property.
Limit type.
Activator data.
Registration style.
The registration builder.
Service used to resolve the action invoker.
A registration builder.
Registers the .
The container builder.
Sets a provided registration to act as an
for the specified list of types.
The registration for the type or object instance that will act as
the model binder.
The list of model for which the
should be a model binder.
Registration limit type.
Activator data type.
Registration style.
An Autofac registration that can be modified as needed.
Thrown if or is .
Thrown if is empty or contains all
values.
The declarative mechanism of registering model binders with Autofac
is through use of
and the .
This method is an imperative alternative.
The two mechanisms are mutually exclusive. If you register a model
binder using
and register the same model binder with this method, the results
are not automatically merged together - standard dependency
registration/resolution rules will be used to manage the conflict.
Any values provided in
will be removed prior to registration.
Register types that implement in the provided assemblies
and have a .
The container builder.
Assemblies to scan for model binders.
A registration builder.
Thrown if or is .
The declarative mechanism of registering model binders with Autofac
is through use of this method and the
.
If you would like more imperative control over registration for your
model binders, see the
method.
The two mechanisms are mutually exclusive. If you register a model
binder using
and register the same model binder with this method, the results
are not automatically merged together - standard dependency
registration/resolution rules will be used to manage the conflict.
This method only registers types that implement
and are marked with the .
The model binder must have the attribute because the
uses
the associated metadata - from the attribute(s) - to resolve the
binder based on model type. If there aren't any attributes, there
won't be any metadata, so the model binder will be technically
registered but will never actually be resolved.
If your model is not marked with the attribute, or if you don't want
to use attributes, use the
extension instead.
Registers the .
The container builder.
Cache instances in the web session. This implies external ownership (disposal is not
available.) All dependencies must also have external ownership.
It is strongly recommended that components cached per-session do not take dependencies on
other services.
Registration limit type.
Registration style.
Activator data type.
The registration to configure.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller action.
The type of the controller.
The registration.
The action selector.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an override for the specified controller.
The type of the controller.
The registration.
The order in which the filter is applied.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The container builder.
The action selector.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The container builder.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The container builder.
The action selector.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The container builder.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The container builder.
The action selector.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The container builder.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The container builder.
The action selector.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The container builder.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller action.
The container builder.
The action selector.
A registration builder allowing further configuration of the component.
Sets the provided registration to act as an for the specified controller.
The container builder.
A registration builder allowing further configuration of the component.
An and implementation
that creates a nested lifetime scope for each HTTP request.
Initializes a module and prepares it to handle requests.
An that provides access to the
methods, properties, and events common to all application objects within an ASP.NET application
Thrown if is .
Disposes of the resources (other than memory) used by the module that implements .
Gets the lifetime scope provider that should be notified when a HTTP request ends.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to The request lifetime scope cannot be created because the HttpContext is not available..
Looks up a localized string similar to The 'GetLifetimeScopeCore' method implementation on '{0}' returned a null ILifetimeScope instance. When overridden this method must return a valid ILifetimeScope instance for the current HTTP request..
A registration source for building view registrations.
Supports view registrations for , ,
and derived types.
Retrieve registrations for an unregistered service, to be used
by the container.
The service that was requested.
A function that will return existing registrations for a service.
Registrations providing the service.
Gets whether the registrations provided by this source are 1:1 adapters on top
of other components (I.e. like Meta, Func or Owned.)