public void Output_DataReady(object sender, EventArgs e) { var output = sender as PipelineReader <PSObject>; while (output.Count > 0) { ConsoleHelp.Write(output.Read(), Module); } }
void Output_DataAdded(object sender, DataAddedEventArgs e) { var output = sender as PSDataCollection <PSObject>; ConsoleHelp.Write(output[e.Index], Module); }