Ejemplo n.º 1
0
        public static void PublishToSubscribers()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.SetUpExchangeAndQueuesForDemo(model);

            RunPublishSubscribeMessageDemo(model, messagingService);
        }
Ejemplo n.º 2
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);
        }