Microsoft.ManagementConsole.AsyncDelegateQueue.Notify C# (CSharp) Method

Notify() public method

public Notify ( BeginInvokeNotification notification ) : void
notification Microsoft.ManagementConsole.Internal.BeginInvokeNotification
return void
        public void Notify(BeginInvokeNotification notification)
        {
            if (notification == null)
            {
                throw new ArgumentNullException("notification");
            }
            AsyncDelegate delegate2 = null;
            lock (this.SyncRoot)
            {
                if (this._pendingDelegates.TryGetValue(notification.Id, out delegate2))
                {
                    this._pendingDelegates.Remove(notification.Id);
                }
                else
                {
                    delegate2 = null;
                }
            }
            if (delegate2 != null)
            {
                delegate2.Execute(false);
            }
        }