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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

ComponentRegistration() public méthode

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.
Résultat System

ComponentRegistration() public méthode

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.
Résultat System

Dispose() protected méthode

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.
Résultat void

RaiseActivated() public méthode

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.
Résultat void

RaiseActivating() public méthode

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.
Résultat void

RaisePreparing() public méthode

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.
Résultat void

ToString() public méthode

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