Пример #1
0
        static void Main(string[] args)
        {
            RedisConnectHelper.initial();
            ChatRoomUIData ChatRoomUIData = new ChatRoomUIData();

            //監聽
            while (true)
            {
                Console.ReadKey();
                ChatRoomUIData.publish();
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            RedisConnectHelper.initial();
            ChatRoomUIData ChatRoomUIData = new ChatRoomUIData();

            ChatRoomUIData.subscrite();
            Console.WriteLine("請輸入名字 : ");
            string shit = Console.ReadLine();

            Console.WriteLine("請輸入訊息 : ");
            ChatRoomUIData.addComment(shit, "SamSamSam", Console.ReadLine());
            //監聽
            Console.ReadLine();
        }