Ejemplo n.º 1
0
 /// <summary>
 /// Close the input collection of the local powershell
 /// </summary>
 /// <param name="sender">sender of this event, unused</param>
 /// <param name="eventArgs">arguments describing this event</param>
 private void HandleInputEndReceived(object sender, EventArgs eventArgs)
 {
     // This can be called in pushed runspace scenarios for error reporting (pipeline stopped).
     // Ignore for noInput.
     if (!_noInput && (InputCollection != null))
     {
         InputCollection.Complete();
     }
 }
Ejemplo n.º 2
0
 private void HandleSessionConnected(object sender, EventArgs eventArgs)
 {
     //Close input if its active. no need to synchronize as input stream would have already been processed
     // when connect call came into PS plugin
     if (InputCollection != null)
     {
         //TODO: Post an ETW event
         InputCollection.Complete();
     }
 }