C# 클래스 Castle.MicroKernel.Releasers.LifecycledComponentsReleasePolicy

상속: IReleasePolicy
파일 보기 프로젝트 열기: castleproject/Windsor 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetTrackedComponentsPerformanceCounter ITrackedComponentsPerformanceCounter
LifecycledComponentsReleasePolicy System
OnInstanceReleased void
trackedComponentsDiagnostic_TrackedInstancesRequested void

공개 메소드들

메소드 설명
CreateSubPolicy ( ) : IReleasePolicy
Dispose ( ) : void
GetTrackedComponentsDiagnostic ( IKernel kernel ) : ITrackedComponentsDiagnostic

Obtains ITrackedComponentsDiagnostic from given IKernel if present.

HasTrack ( object instance ) : bool
LifecycledComponentsReleasePolicy ( IKernel kernel ) : System
LifecycledComponentsReleasePolicy ( ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter ) : System

Creates new policy which publishes its tracking components count to and exposes diagnostics into .

Release ( object instance ) : void
Track ( object instance, Burden burden ) : void

비공개 메소드들

메소드 설명
GetTrackedComponentsPerformanceCounter ( IPerformanceMetricsFactory perfMetricsFactory ) : ITrackedComponentsPerformanceCounter
LifecycledComponentsReleasePolicy ( LifecycledComponentsReleasePolicy parent ) : System
OnInstanceReleased ( Burden burden ) : void
trackedComponentsDiagnostic_TrackedInstancesRequested ( object sender, Castle.Windsor.Experimental.Diagnostics.TrackedInstancesEventArgs e ) : void

메소드 상세

CreateSubPolicy() 공개 메소드

public CreateSubPolicy ( ) : IReleasePolicy
리턴 IReleasePolicy

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetTrackedComponentsDiagnostic() 공개 정적인 메소드

Obtains ITrackedComponentsDiagnostic from given IKernel if present.
public static GetTrackedComponentsDiagnostic ( IKernel kernel ) : ITrackedComponentsDiagnostic
kernel IKernel
리턴 ITrackedComponentsDiagnostic

HasTrack() 공개 메소드

public HasTrack ( object instance ) : bool
instance object
리턴 bool

LifecycledComponentsReleasePolicy() 공개 메소드

public LifecycledComponentsReleasePolicy ( IKernel kernel ) : System
kernel IKernel /// Used to obtain if present. ///
리턴 System

LifecycledComponentsReleasePolicy() 공개 메소드

Creates new policy which publishes its tracking components count to and exposes diagnostics into .
public LifecycledComponentsReleasePolicy ( ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter ) : System
trackedComponentsDiagnostic ITrackedComponentsDiagnostic
trackedComponentsPerformanceCounter ITrackedComponentsPerformanceCounter
리턴 System

Release() 공개 메소드

public Release ( object instance ) : void
instance object
리턴 void

Track() 공개 메소드

public Track ( object instance, Burden burden ) : void
instance object
burden Burden
리턴 void