C# Class Castle.MicroKernel.Releasers.LifecycledComponentsReleasePolicy

Inheritance: IReleasePolicy
显示文件 Open project: castleproject/Windsor Class Usage Examples

Private Properties

Property Type Description
GetTrackedComponentsPerformanceCounter ITrackedComponentsPerformanceCounter
LifecycledComponentsReleasePolicy System
OnInstanceReleased void
trackedComponentsDiagnostic_TrackedInstancesRequested void

Public Methods

Method Description
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

Private Methods

Method Description
GetTrackedComponentsPerformanceCounter ( IPerformanceMetricsFactory perfMetricsFactory ) : ITrackedComponentsPerformanceCounter
LifecycledComponentsReleasePolicy ( LifecycledComponentsReleasePolicy parent ) : System
OnInstanceReleased ( Burden burden ) : void
trackedComponentsDiagnostic_TrackedInstancesRequested ( object sender, Castle.Windsor.Experimental.Diagnostics.TrackedInstancesEventArgs e ) : void

Method Details

CreateSubPolicy() public method

public CreateSubPolicy ( ) : IReleasePolicy
return IReleasePolicy

Dispose() public method

public Dispose ( ) : void
return void

GetTrackedComponentsDiagnostic() public static method

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

HasTrack() public method

public HasTrack ( object instance ) : bool
instance object
return bool

LifecycledComponentsReleasePolicy() public method

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

LifecycledComponentsReleasePolicy() public method

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
return System

Release() public method

public Release ( object instance ) : void
instance object
return void

Track() public method

public Track ( object instance, Burden burden ) : void
instance object
burden Burden
return void