static void Main(string[] args)
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.ReceivePublishSubscribeMessageReceiverTwo(model);
        }
示例#2
0
        public static void ReceiveFromPublisher()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.ReceivePublishSubscribeMessageReceiverTwo(model);
        }