private void Sweep(long currentTime) { var removed = new ArrayDeque<object>(); foreach (var entry in subViewPerKey) { var age = currentTime - entry.Value.LastUpdateTime; if (age > ViewFactory.ReclaimMaxAge) { removed.Add(entry.Key); } } foreach (var key in removed) { var entry = subViewPerKey.Delete(key); GroupByViewUtil.RemoveSubview( entry.Subview, new AgentInstanceStopServices(AgentInstanceContext.AgentInstanceContext)); } }
public void Stop(AgentInstanceStopServices services) { foreach (KeyValuePair<object, View> entry in subViewPerKey) { GroupByViewUtil.RemoveSubview(entry.Value, services); } }
public void Stop(AgentInstanceStopServices services) { foreach (var entry in subViewPerKey) { GroupByViewUtil.RemoveSubview(entry.Value.Subview, services); } }