Constructors
-
Component
Registration(Guid, Initializes a new instance of the ComponentRegistration class.IInstance Activator, IComponent Lifetime, Instance Sharing, Instance Ownership, IEnumerable<Service>, IDictionary<String, Object>) -
Component
Registration(Guid, Initializes a new instance of the ComponentRegistration class.IInstance Activator, IComponent Lifetime, Instance Sharing, Instance Ownership, IEnumerable<Service>, IDictionary<String, Object>, IComponent Registration)
Methods
- Dispose(Boolean) protectedvirtual Releases unmanaged and - optionally - managed resources.
-
Raise
Activated(IComponent sealed Called by the container once an instance has been fully constructed, including any requested objects that depend on the instance.Context, IEnumerable<Parameter>, Object) -
Raise
Activating(IComponent sealed Called by the container once an instance has been constructed.Context, IEnumerable<Parameter>, Object&) -
Raise
Preparing(IComponent sealed Called by the container when an instance is required.Context, IEnumerable<Parameter>&) -
To
String() virtual Describes the component in a human-readable form.
Properties
- Activator sealed Gets or sets the activator used to create instances.
- Id sealed Gets a unique identifier for this component (shared in all sub-contexts.) This value also appears in Services.
- Lifetime sealed Gets the lifetime associated with the component.
- Metadata sealed Gets additional data associated with the component.
- Ownership sealed Gets information about whether the instances of the component should be disposed by the container.
- Services sealed Gets the services provided by the component.
- Sharing sealed Gets information about whether the component instances are shared or not.
- Target sealed Gets the component registration upon which this registration is based. If this registration was created directly by the user, returns this.
Events
- Activated sealed Fired when the activation process for a new instance is complete.
- Activating sealed 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.
- Preparing sealed Fired when a new instance is required, prior to activation. Can be used to provide Autofac with additional parameters, used during activation.