C# Class Castle.MicroKernel.Releasers.LifecycledComponentsReleasePolicy

Inheritance: IReleasePolicy
Afficher le fichier Open project: castleproject/Windsor Class Usage Examples

Private Properties

Свойство Type Description
GetTrackedComponentsPerformanceCounter ITrackedComponentsPerformanceCounter
LifecycledComponentsReleasePolicy System
OnInstanceReleased void
trackedComponentsDiagnostic_TrackedInstancesRequested void

Méthodes publiques

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

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

public CreateSubPolicy ( ) : IReleasePolicy
Résultat IReleasePolicy

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetTrackedComponentsDiagnostic() public static méthode

Obtains ITrackedComponentsDiagnostic from given IKernel if present.
public static GetTrackedComponentsDiagnostic ( IKernel kernel ) : ITrackedComponentsDiagnostic
kernel IKernel
Résultat ITrackedComponentsDiagnostic

HasTrack() public méthode

public HasTrack ( object instance ) : bool
instance object
Résultat bool

LifecycledComponentsReleasePolicy() public méthode

public LifecycledComponentsReleasePolicy ( IKernel kernel ) : System
kernel IKernel /// Used to obtain if present. ///
Résultat System

LifecycledComponentsReleasePolicy() public méthode

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

Release() public méthode

public Release ( object instance ) : void
instance object
Résultat void

Track() public méthode

public Track ( object instance, Burden burden ) : void
instance object
burden Burden
Résultat void