internal static void Reset() { // Before call ensure that the arrival queue is empty. lock (WaitingSetLock) { if (WaitingSet.Count > 0) { SnTrace.IndexQueue.Write("IAQ: RESET: WaitingSet.Count: {0}", WaitingSet.Count); } foreach (var activity in WaitingSet) { activity.Finish(); } WaitingSet.Clear(); } }
internal static void Start() { lock (WaitingSetLock) WaitingSet.Clear(); }