Microsoft.VisualStudio.Project.IdeBuildLogger.ClearQueuedTasks C# (CSharp) Method

ClearQueuedTasks() protected method

protected ClearQueuedTasks ( ) : void
return void
        protected virtual void ClearQueuedTasks()
        {
            // NOTE: This may run on a background thread!
            this.taskQueue = new ConcurrentQueue<Func<ErrorTask>>();

            if (this.InteractiveBuild)
            {
                // We need to clear this on the main thread. We must use BeginInvoke because the main thread may not be pumping events yet.
                BeginInvokeWithErrorMessage(this.serviceProvider, this.dispatcher, () =>
                {
                    this.taskProvider.Tasks.Clear();
                });
            }
        }