C# Class Revenj.Extensibility.Autofac.Core.Registration.ComponentRegistration

Describes a logical component within the container.
Inheritance: Disposable, IComponentRegistration
Datei anzeigen Open project: ngs-doo/revenj Class Usage Examples

Public Methods

Method Description
ComponentRegistration ( System.Guid id, IInstanceActivator activator, IComponentLifetime lifetime, InstanceSharing sharing, InstanceOwnership ownership, IEnumerable services, object>.IDictionary metadata ) : System

Create a new component registration.

ComponentRegistration ( System.Guid id, IInstanceActivator activator, IComponentLifetime lifetime, InstanceSharing sharing, InstanceOwnership ownership, IEnumerable services, object>.IDictionary metadata, IComponentRegistration target ) : System

Create a new component registration.

RaiseActivated ( Service service, IComponentContext context, IEnumerable parameters, object instance ) : void

Called by the container once an instance has been fully constructed, including any requested objects that depend on the instance.

RaiseActivating ( Service service, IComponentContext context, IEnumerable parameters, object &instance ) : void

Called by the container once an instance has been constructed.

RaisePreparing ( Service service, IComponentContext context, IEnumerable &parameters ) : void

Called by the container when an instance is required.

ToString ( ) : string

Describes the component in a human-readable form.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

ComponentRegistration() public method

Create a new component registration.
public ComponentRegistration ( System.Guid id, IInstanceActivator activator, IComponentLifetime lifetime, InstanceSharing sharing, InstanceOwnership ownership, IEnumerable services, object>.IDictionary metadata ) : System
id System.Guid Unique identifier for the component.
activator IInstanceActivator Activator used to activate instances.
lifetime IComponentLifetime Determines how the component will be associated with its lifetime.
sharing InstanceSharing Whether the component is shared within its lifetime scope.
ownership InstanceOwnership Whether the component instances are disposed at the end of their lifetimes.
services IEnumerable Services the component provides.
metadata object>.IDictionary Data associated with the component.
return System

ComponentRegistration() public method

Create a new component registration.
public ComponentRegistration ( System.Guid id, IInstanceActivator activator, IComponentLifetime lifetime, InstanceSharing sharing, InstanceOwnership ownership, IEnumerable services, object>.IDictionary metadata, IComponentRegistration target ) : System
id System.Guid Unique identifier for the component.
activator IInstanceActivator Activator used to activate instances.
lifetime IComponentLifetime Determines how the component will be associated with its lifetime.
sharing InstanceSharing Whether the component is shared within its lifetime scope.
ownership InstanceOwnership Whether the component instances are disposed at the end of their lifetimes.
services IEnumerable Services the component provides.
metadata object>.IDictionary Data associated with the component.
target IComponentRegistration The component registration upon which this registration is based.
return System

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

RaiseActivated() public method

Called by the container once an instance has been fully constructed, including any requested objects that depend on the instance.
public RaiseActivated ( Service service, IComponentContext context, IEnumerable parameters, object instance ) : void
service Service Service which is activated
context IComponentContext The context in which the instance was activated.
parameters IEnumerable The parameters supplied to the activator.
instance object The instance.
return void

RaiseActivating() public method

Called by the container once an instance has been constructed.
public RaiseActivating ( Service service, IComponentContext context, IEnumerable parameters, object &instance ) : void
service Service Service which is activating
context IComponentContext The context in which the instance was activated.
parameters IEnumerable The parameters supplied to the activator.
instance object The instance.
return void

RaisePreparing() public method

Called by the container when an instance is required.
public RaisePreparing ( Service service, IComponentContext context, IEnumerable &parameters ) : void
service Service Service which is preparing
context IComponentContext The context in which the instance will be activated.
parameters IEnumerable Parameters for activation.
return void

ToString() public method

Describes the component in a human-readable form.
public ToString ( ) : string
return string