src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs
/// <summary>
///
/// Invoked by ConsoleHostUserInterface.WriteProgress to update the set of outstanding activities for which 
/// ProgressRecords have been received.
///
/// </summary>
Invoked by ConsoleHostUserInterface.WriteProgress to update the set of outstanding activities for which
ProgressRecords have been received.
Invoked by ConsoleHostUserInterface . WriteProgress to update the set of outstanding activities for which ProgressRecords have been received .
private
        void
        HandleIncomingProgressRecord(Int64 sourceId, ProgressRecord record)
        {
            Dbg.Assert(record != null, "record should not be null");
            if (_pendingProgress == null)
            {
                Dbg.Assert(_progPane == null, "If there is no data struct, there shouldn't be a pane, either.");
                _pendingProgress = new PendingProgress();
            }
            _pendingProgress.Update(sourceId, record);
            if (_progPane == null)
            {
                _progPane = new ProgressPane(this);
            }
            _progPane.Show(_pendingProgress);
        }
private void HandleIncomingProgressRecord ( Int64 sourceId , ProgressRecord record ) { Dbg . Assert ( record != null , " " ) ; if ( _pendingProgress == null ) { Dbg . Assert ( _progPane == null , " " ) ; _pendingProgress = new PendingProgress ( ) ; } _pendingProgress . Update ( sourceId , record ) ; if ( _progPane == null ) { _progPane = new ProgressPane ( this ) ; } _progPane . Show ( _pendingProgress ) ; }
// This is the first time we've received a progress record.  Create a pane to show it, and  // then show it.
sourceId
Int64
record
ProgressRecord