コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("消息生产者开始生产数据!");
            Console.WriteLine("输入exit退出!");
            Console.WriteLine(args.ToString());

            ISendService sendService = new SendService();

            string input;

            do
            {
                input = Console.ReadLine();

                sendService.SendMsg("Clent1", input);
            } while (input.Trim().ToLower() != "exit");
        }