Exemplo n.º 1
0
            public IReferenceSystem NewReferenceSystem(IInternalObjectContainer container)
            {
                PerformanceCounter counter = ObjectsInReferenceSystemCounterFor(container);

                return(new MonitoringReferenceSystem(new ReferenceSystemListener(counter)));
            }
Exemplo n.º 2
0
 public ReferenceSystemListener(PerformanceCounter counter)
 {
     _performanceCounter           = counter;
     _performanceCounter.Disposed += delegate { _performanceCounter = null; };
 }