Click or drag to resize

ComponentRegistration Class

Describes a logical component within the container.
Inheritance Hierarchy
SystemObject
  Autofac.UtilDisposable
    Autofac.Core.RegistrationComponentRegistration

Namespace:  Autofac.Core.Registration
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public class ComponentRegistration : Disposable, 
	IComponentRegistration, IDisposable

The ComponentRegistration type exposes the following members.

Constructors
  NameDescription
Public methodComponentRegistration(Guid, IInstanceActivator, IComponentLifetime, InstanceSharing, InstanceOwnership, IEnumerableService, IDictionaryString, Object, RegistrationOptions)
Initializes a new instance of the ComponentRegistration class.
Public methodComponentRegistration(Guid, IInstanceActivator, IComponentLifetime, InstanceSharing, InstanceOwnership, IResolvePipelineBuilder, IEnumerableService, IDictionaryString, Object, RegistrationOptions)
Initializes a new instance of the ComponentRegistration class.
Public methodComponentRegistration(Guid, IInstanceActivator, IComponentLifetime, InstanceSharing, InstanceOwnership, IEnumerableService, IDictionaryString, Object, IComponentRegistration, RegistrationOptions)
Initializes a new instance of the ComponentRegistration class.
Public methodComponentRegistration(Guid, IInstanceActivator, IComponentLifetime, InstanceSharing, InstanceOwnership, IResolvePipelineBuilder, IEnumerableService, IDictionaryString, Object, IComponentRegistration, RegistrationOptions)
Initializes a new instance of the ComponentRegistration class.
Top
Properties
  NameDescription
Public propertyActivator
Gets the activator for the registration.
Public propertyId
Gets a unique identifier for this component (shared in all sub-contexts.) This value also appears in Services.
Protected propertyIsDisposed
Gets a value indicating whether the current instance has been disposed.
(Inherited from Disposable.)
Public propertyLifetime
Gets the lifetime associated with the component.
Public propertyMetadata
Gets additional data associated with the component.
Public propertyOptions
Gets the options for the registration.
Public propertyOwnership
Gets information about whether the instances of the component should be disposed by the container.
Public propertyResolvePipeline
Gets the resolve pipeline for the component.
Public propertyServices
Gets the services provided by the component.
Public propertySharing
Gets information about whether the component instances are shared or not.
Public propertyTarget
Gets the component registration upon which this registration is based. If this registration was created directly by the user, returns this.
Top
Methods
  NameDescription
Public methodBuildResolvePipeline(IComponentRegistryServices)
Builds the resolve pipeline.
Protected methodBuildResolvePipeline(IComponentRegistryServices, IResolvePipelineBuilder)
Populates the resolve pipeline with middleware based on the registration, and builds the pipeline.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Overrides DisposableDispose(Boolean).)
Public methodDisposeAsync (Inherited from Disposable.)
Protected methodDisposeAsync(Boolean)
Releases unmanaged and - optionally - managed resources, asynchronously.
(Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Describes the component in a human-readable form.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventPipelineBuilding
Provides an event that will be invoked just before a pipeline is built, and can be used to add additional middleware at that point.
Top
Extension Methods
  NameDescription
Public Extension MethodMatchingLifetimeScopeTags
For components registered instance-per-matching-lifetime-scope, retrieves the set of lifetime scope tags to match.
(Defined by ComponentRegistrationExtensions.)
Top
See Also