/// <summary> /// Registers the thread. /// </summary> /// <param name="thread">The thread.</param> private void RegisterThread(CustomThread thread) { if (_registeredThreads.Contains(thread)) { return; } _registeredThreads.Add(thread); }
/// <summary> /// Does the internal. /// </summary> protected void DoInternal() { _currentThread = this; var enumerator = Do(); if (enumerator == null) { return; } RunEnumerator(enumerator); }