static void Main(string[] args)
        {

            var calculatorModule = new CalculatorModule();
            var calculatorRpcServer = new RabbitRpcServer<ICalculator>("host=localhost;username=guest;password=guest;virtualHost=rabbitCommunicationTest", "rabbit.test", calculatorModule);
            calculatorRpcServer.Connect();

            Console.ReadLine();

            calculatorRpcServer.Close();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var calculatorModule    = new CalculatorModule();
            var calculatorRpcServer = new RabbitRpcServer <ICalculator>("host=localhost;username=guest;password=guest;virtualHost=rabbitCommunicationTest", "rabbit.test", calculatorModule);

            calculatorRpcServer.Connect();

            Console.ReadLine();

            calculatorRpcServer.Close();
        }