Exemple #1
0
        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();
        }
Exemple #2
0
 public Shifter(string inputChannelName, string outputChannelName)
     : base(inputChannelName)
 {
     producer = new Producer(outputChannelName);
 }
Exemple #3
0
 public Alphabetizer(string inputChannelName, string outputChannelName)
     : base(inputChannelName)
 {
     producer = new Producer(outputChannelName);
 }