예제 #1
0
        static void Main(string[] args)
        {
            AmqpMessagingService messagingService = new AmqpMessagingService
            {
                MessageQueueName = MEP.RemoteProcedureCall_RPC.ToString()
            };
            IConnection connection = messagingService.GetRabbitMqConnection();
            IModel      model      = connection.CreateModel();

            //messagingService.SetUpQueueForWorkerQueueDemo(model);
            messagingService.SetUpQueueForRpcDemo(model);
            messagingService.SetUpExchangeAndQueuesForDemo(model);
            RunPublishSubscribeMessageDemo(model, messagingService);

            //RunWorkerQueueMessageDemo(model, messagingService);
        }