Example #1
0
        /// <summary>
        ///     Registers the thread.
        /// </summary>
        /// <param name="thread">The thread.</param>
        private void RegisterThread(CustomThread thread)
        {
            if (_registeredThreads.Contains(thread))
            {
                return;
            }

            _registeredThreads.Add(thread);
        }
Example #2
0
        /// <summary>
        ///     Does the internal.
        /// </summary>
        protected void DoInternal()
        {
            _currentThread = this;

            var enumerator = Do();

            if (enumerator == null)
            {
                return;
            }

            RunEnumerator(enumerator);
        }