Click or drag to resize

IComponentRegistration Interface

Describes a logical component within the container.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public interface IComponentRegistration : IDisposable

The IComponentRegistration type exposes the following members.

Properties
  NameDescription
Public propertyActivator
Gets the activator used to create instances.
Public propertyId
Gets a unique identifier for this component (shared in all sub-contexts.) This value also appears in Services.
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 a value indicating 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 a value indicating whether the component instances are shared or not.
Public propertyTarget
Gets the component registration upon which this registration is based.
Top
Methods
  NameDescription
Public methodBuildResolvePipeline
Builds the resolve pipeline.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
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