ComponentRegistration Class |
Namespace: Autofac.Core.Registration
The ComponentRegistration type exposes the following members.
| Name | Description | |
|---|---|---|
| Activator |
Gets the activator for the registration.
| |
| Id |
Gets a unique identifier for this component (shared in all sub-contexts.)
This value also appears in Services.
| |
| IsDisposed |
Gets a value indicating whether the current instance has been disposed.
(Inherited from Disposable.) | |
| Lifetime |
Gets the lifetime associated with the component.
| |
| Metadata |
Gets additional data associated with the component.
| |
| Options |
Gets the options for the registration.
| |
| Ownership |
Gets information about whether the instances of the component should be disposed by the container.
| |
| ResolvePipeline |
Gets the resolve pipeline for the component.
| |
| Services |
Gets the services provided by the component.
| |
| Sharing |
Gets information about whether the component instances are shared or not.
| |
| Target |
Gets the component registration upon which this registration is based.
If this registration was created directly by the user, returns this.
|
| Name | Description | |
|---|---|---|
| BuildResolvePipeline(IComponentRegistryServices) |
Builds the resolve pipeline.
| |
| BuildResolvePipeline(IComponentRegistryServices, IResolvePipelineBuilder) |
Populates the resolve pipeline with middleware based on the registration, and builds the pipeline.
| |
| Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
| Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
(Overrides DisposableDispose(Boolean).) | |
| DisposeAsync | (Inherited from Disposable.) | |
| DisposeAsync(Boolean) |
Releases unmanaged and - optionally - managed resources, asynchronously.
(Inherited from Disposable.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString |
Describes the component in a human-readable form.
(Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| PipelineBuilding |
Provides an event that will be invoked just before a pipeline is built, and can be used to add additional middleware
at that point.
|
| Name | Description | |
|---|---|---|
| MatchingLifetimeScopeTags |
For components registered instance-per-matching-lifetime-scope, retrieves the set
of lifetime scope tags to match.
(Defined by ComponentRegistrationExtensions.) |