C# 클래스 Revenj.Extensibility.Autofac.Core.Registration.ComponentRegistration

Describes a logical component within the container.
상속: Disposable, IComponentRegistration
파일 보기 프로젝트 열기: ngs-doo/revenj 1 사용 예제들

공개 메소드들

메소드 설명
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