public void Execute(IceMX.Observer <T> .MetricsUpdate func) { lock (_map) { func(_object); } }
public void init(MetricsHelper <T> helper, List <MetricsMap <T> .Entry> objects, Observer <T> previous) { _objects = objects; if (previous == null) { return; } _previousDelay = previous._previousDelay + (long)(previous.ElapsedTicks / (Frequency / 1000000.0)); foreach (MetricsMap <T> .Entry e in previous._objects) { if (!_objects.Contains(e)) { e.detach(_previousDelay); } } }