Beispiel #1
0
        public static void Main()
        {
            Console.WriteLine("Server Start");
            var cancelSynchronizedCollection = new CancelSynchronizedCollection();
            var cancelationQueueReceiver     = new CancelationQueueReceiver(cancelSynchronizedCollection);
            var calculatorQueueReceiver      = new PiCalculatorQueueReceiver(cancelSynchronizedCollection);

            Console.WriteLine(" Press [enter] to exit.");
            Console.ReadLine();
            calculatorQueueReceiver.Close();
            cancelationQueueReceiver.Close();
            //cancelSynchronizedCollection.Dispose();
        }
Beispiel #2
0
 public CancelationQueueReceiver(CancelSynchronizedCollection cancelSynchronizedCollection)
 {
     _cancelSynchronizedCollection = cancelSynchronizedCollection;
     _queueServer           = new QueueServer(CancelQueueName);
     _queueServer.Received += OnRecived;
 }
 public PiCalculatorQueueReceiver(CancelSynchronizedCollection cancelSynchronizedCollection)
 {
     rpcServer                     = new RpcServer(RpcServerName);
     rpcServer.Received           += OnReceived;
     _cancelSynchronizedCollection = cancelSynchronizedCollection;
 }