/// <summary> /// Creates new policy which publishes its tracking components count to <paramref /// name = "trackedComponentsPerformanceCounter" /> and exposes diagnostics into <paramref /// name = "trackedComponentsDiagnostic" />. /// </summary> /// <param name = "trackedComponentsDiagnostic"></param> /// <param name = "trackedComponentsPerformanceCounter"></param> public LifecycledComponentsReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) { this.trackedComponentsDiagnostic = trackedComponentsDiagnostic; perfCounter = trackedComponentsPerformanceCounter ?? NullPerformanceCounter.Instance; if (trackedComponentsDiagnostic != null) { trackedComponentsDiagnostic.TrackedInstancesRequested += trackedComponentsDiagnostic_TrackedInstancesRequested; } }
public LifecycledComponentsReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) { this.trackedComponentsDiagnostic = trackedComponentsDiagnostic; perfCounter = trackedComponentsPerformanceCounter ?? NullPerformanceCounter.Instance; if (trackedComponentsDiagnostic != null) { trackedComponentsDiagnostic.TrackedInstancesRequested += trackedComponentsDiagnostic_TrackedInstancesRequested; } }
public TrackedComponentsDiagnostic(ITrackedComponentsPerformanceCounter counter) { this.counter = counter; }
public LifecycledComponentsReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter) { }
public UnmanagedReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter) { }
public TrackedComponentsDiagnostic(ITrackedComponentsPerformanceCounter counter) { this.counter = counter; }
/// <summary></summary> public TrulyTransientReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter) { }
/// <summary></summary> public TrulyTransientReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter) { }
public UnmanagedReleasePolicy(ITrackedComponentsDiagnostic trackedComponentsDiagnostic, ITrackedComponentsPerformanceCounter trackedComponentsPerformanceCounter) : base(trackedComponentsDiagnostic, trackedComponentsPerformanceCounter) { }