Пример #1
0
 internal override void EndProcessing()
 {
     base.EndProcessing();
     if (this.command != null)
     {
         Array array = this.command.ShutDown();
         if (array != null)
         {
             foreach (object obj2 in array)
             {
                 this.ProcessObject(PSObjectHelper.AsPSObject(obj2));
             }
         }
     }
     if (this.LineOutput.RequiresBuffering)
     {
         Microsoft.PowerShell.Commands.Internal.Format.LineOutput.DoPlayBackCall playback = new Microsoft.PowerShell.Commands.Internal.Format.LineOutput.DoPlayBackCall(this.DrainCache);
         this.LineOutput.ExecuteBufferPlayBack(playback);
     }
     else
     {
         this.DrainCache();
     }
 }
Пример #2
0
 internal override void EndProcessing()
 {
     base.EndProcessing();
     if (this.command != null)
     {
         Array array = this.command.ShutDown();
         if (array != null)
         {
             foreach (object obj2 in array)
             {
                 this.ProcessObject(PSObjectHelper.AsPSObject(obj2));
             }
         }
     }
     if (this.LineOutput.RequiresBuffering)
     {
         Microsoft.PowerShell.Commands.Internal.Format.LineOutput.DoPlayBackCall playback = new Microsoft.PowerShell.Commands.Internal.Format.LineOutput.DoPlayBackCall(this.DrainCache);
         this.LineOutput.ExecuteBufferPlayBack(playback);
     }
     else
     {
         this.DrainCache();
     }
 }