Exemplo n.º 1
0
 private static void ParallelCore_BeforeProcessSingleItem(Tools.ProducerConsumer.IProcessingStage <string, int> sender, string item)
 {
     Console.WriteLine($"Running command '{item}'");
 }
Exemplo n.º 2
0
 private static void ParallelCore_AfterProcessSingleItem(Tools.ProducerConsumer.IProcessingStage <string, int> sender, string item, int processedItem)
 {
     Console.WriteLine($"== Command {item} exited with code {processedItem} ==");
 }