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

            messagingService.ReceiveScatterGatherMessageThree(model);
        }
Exemplo n.º 3
0
        public static void ReceiveObject()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.ReceiveObjectFromQueue(model);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 9
0
        public static void OneWayMessageQueue()
        {
            AmqpMessagingService messagingService = new AmqpMessagingService();
            IConnection          connection       = messagingService.GetRabbitMqConnection();
            IModel model = connection.CreateModel();

            messagingService.SetUpQueueForOneWayMessageDemo(model);

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

            messagingService.SetUpQueueForSerialization(model);

            SendObject(model, messagingService);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }