Exemple #1
0
        static void Main(string[] args)
        {
            //string type = "simple"; // 简单队列
            string type = "work"; // 工作队列

            var rabbitMQService = RabbitMQFactory.CreateRabbitMQService(type);

            rabbitMQService.Receive();

            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //string type = "simple"; // 简单队列
            string type = "work"; // 工作队列

            string message = "a.b.c.d.e.f!";

            var rabbitMQService = RabbitMQFactory.CreateRabbitMQService(type);

            rabbitMQService.Publish(message);

            Console.ReadLine();
        }