static void Main(string[] args) { var source = new StreamReader(@"data\TestData.txt"); var producer = new Producer(channel); String line; while ((line = source.ReadLine()) != null) { producer.Send(line); } producer.End(); Console.WriteLine("Press any key to continue"); Console.ReadKey(); }
public Shifter(string inputChannelName, string outputChannelName) : base(inputChannelName) { producer = new Producer(outputChannelName); }
public Alphabetizer(string inputChannelName, string outputChannelName) : base(inputChannelName) { producer = new Producer(outputChannelName); }