Autofac .NET Inversion of Control Container
IComponentRegistration Interface
NamespacesAutofac.CoreIComponentRegistration
Describes a logical component within the container.
Declaration Syntax
C#Visual BasicVisual C++
public interface IComponentRegistration : IDisposable
Public Interface IComponentRegistration _
	Implements IDisposable
public interface class IComponentRegistration : IDisposable
Members
All MembersMethodsPropertiesEvents



IconMemberDescription
Activated
Fired when the activation process for a new instance is complete.

Activating
Fired when a new instance is being activated. The instance can be wrapped or switched at this time by setting the Instance property in the provided event arguments.

Activator
The activator used to create instances.

Dispose()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Id
A unique identifier for this component (shared in all sub-contexts.) This value also appears in Services.

Lifetime
The lifetime associated with the component.

Metadata
Additional data associated with the component.

Ownership
Whether the instances of the component should be disposed by the container.

Preparing
Fired when a new instance is required. The instance can be provided in order to skip the regular activator, by setting the Instance property in the provided event arguments.

RaiseActivated(IComponentContext, IEnumerable<(Of <(Parameter>)>), Object)
Called by the container once an instance has been fully constructed, including any requested objects that depend on the instance.

RaiseActivating(IComponentContext, IEnumerable<(Of <(Parameter>)>), Object%)
Called by the container once an instance has been constructed.

RaisePreparing(IComponentContext, IEnumerable<(Of <(Parameter>)>)%)
Called by the container when an instance is required.

Services
The services provided by the component.

Sharing
Whether the component instances are shared or not.

Target
The component registration upon which this registration is based.

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)