C# Класс Castle.MicroKernel.Releasers.LifecycledComponentsReleasePolicy

Наследование: IReleasePolicy
Показать файл Открыть проект Примеры использования класса

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