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

            messagingService.ReceiveScatterGatherMessageThree(model);
        }
예제 #3
0
        public static void ReceiveObject()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.ReceiveObjectFromQueue(model);
        }
예제 #4
0
        public static void ReceiveFromPublisher()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

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

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

            messagingService.ReceivePublishSubscribeMessageReceiverTwo(model);
        }
예제 #7
0
        static void Main(string[] args)
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            //messagingService.SetUpExchangeAndQueuesForDemo(model);
            RunPublishSubscribeMessageDemo(model, messagingService);
        }
예제 #8
0
        static void Main(string[] args)
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            //messagingService.SetUpQueueForWorkerQueueDemo(model);
            RunWorkerQueueMessageDemo(model, messagingService);
        }
예제 #9
0
        public static void OneWayMessageQueue()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.SetUpQueueForOneWayMessageDemo(model);

            RunOneWayMessageDemo(model, messagingService);
        }
예제 #10
0
        public static void PublishObject()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.SetUpQueueForSerialization(model);

            SendObject(model, messagingService);
        }
예제 #11
0
        static void Main(string[] args)
        {
            AmqpMessagingService messagingService = new AmqpMessagingService
            {
                MessageQueueName = MEP.PublishSubscribe.ToString()
            };

            IConnection connection = messagingService.GetRabbitMqConnection();
            IModel      model      = connection.CreateModel();

            messagingService.ReceiveQueueMessagesTwo(model);
        }
예제 #12
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);
        }