Autofac Namespace |
[Missing <summary> documentation for "N:Autofac"]
Class | Description | |
---|---|---|
ContainerBuilder |
Used to build an IContainer from component registrations.
| |
ContainerExtensions |
Extensions to the container to provide convenience methods for tracing.
| |
Module |
Base class for user-defined modules. Modules can add a set of related components
to a container (Load(ContainerBuilder)) or attach cross-cutting functionality
to other components (AttachToComponentRegistration(IComponentRegistryBuilder, IComponentRegistration).
Modules are given special support in the XML configuration feature - see
http://code.google.com/p/autofac/wiki/StructuringWithModules.
| |
ModuleRegistrationExtensions |
Extension methods for registering IModule instances with a container.
| |
NamedParameter |
A parameter identified by name. When applied to a reflection-based
component, Name will be matched against
the name of the component's constructor arguments. When applied to
a delegate-based component, the parameter can be accessed using
NamedT(IEnumerableParameter, String).
| |
ParameterExtensions |
Extension methods that simplify extraction of parameter values from
an IEnumerableT where T is Parameter.
Each method returns the first matching parameter value, or throws an exception if
none is provided.
| |
PipelineBuilderExtensions |
Extension methods for adding pipeline middleware.
| |
PositionalParameter |
A parameter that is identified according to an integer representing its
position in an argument list. When applied to a reflection-based
component, Position will be matched against
the indices of the component's constructor arguments. When applied to
a delegate-based component, the parameter can be accessed using
PositionalT(IEnumerableParameter, Int32).
| |
RegistrationExtensions |
Adds registration syntax to the ContainerBuilder type.
| |
ResolutionExtensions |
Adds syntactic convenience methods to the IComponentContext interface.
| |
ResolutionValueExtensions |
Adds syntactic convenience methods to the IComponentContext interface,
specifically to support value types in the nullable reference scenario.
| |
ResolveRequest |
The details of an individual request to resolve a service.
| |
ScanningFilterExtensions |
Convenience filters for use with assembly scanning registrations.
| |
ServiceMiddlewareRegistrationExtensions |
Extension methods for registering service middleware.
| |
SourceRegistrationExtensions |
Extension methods for registering IRegistrationSource instances with a container.
| |
TypedParameter |
A parameter that can supply values to sites that exactly
match a specified type. When applied to a reflection-based
component, Type will be matched against
the types of the component's constructor arguments. When applied to
a delegate-based component, the parameter can be accessed using
TypedAsT(IEnumerableParameter).
| |
TypeExtensions |
Extends Type with methods that are useful in
building scanning rules for RegisterAssemblyTypes(ContainerBuilder, Assembly).
|
Interface | Description | |
---|---|---|
IComponentContext |
The context in which a service can be accessed or a component's
dependencies resolved. Disposal of a context will dispose any owned
components.
| |
IContainer |
Creates, wires dependencies and manages lifetime for a set of components.
Most instances of IContainer are created
by a ContainerBuilder.
| |
ILifetimeScope |
An ILifetimeScope tracks the instantiation of component instances.
It defines a boundary in which instances are shared and configured.
Disposing an ILifetimeScope will dispose the components that were
resolved through it.
| |
IStartable |
When implemented by a component, an instance of the component will be resolved
and started as soon as the container is built. Autofac will not call the Start()
method when subsequent instances are resolved. If this behavior is required, use
an OnActivated() event handler instead.
|
Enumeration | Description | |
---|---|---|
PropertyWiringOptions |
Options that can be applied when autowiring properties on a component. (Multiple options can
be specified using bitwise 'or' - e.g. AllowCircularDependencies | PreserveSetValues.
|