C# Класс Revenj.Extensibility.Autofac.Core.Registration.ComponentRegistration

Describes a logical component within the container.
Наследование: Disposable, IComponentRegistration
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Описание методов

ComponentRegistration() публичный Метод

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.
Результат System

ComponentRegistration() публичный Метод

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.
Результат System

Dispose() защищенный Метод

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.
Результат void

RaiseActivated() публичный Метод

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.
Результат void

RaiseActivating() публичный Метод

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.
Результат void

RaisePreparing() публичный Метод

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.
Результат void

ToString() публичный Метод

Describes the component in a human-readable form.
public ToString ( ) : string
Результат string