void RunChat(IChat channel, string chatNickname)
        {
            Console.WriteLine("\nPress [Enter] to exit\n");
            channel.Hello(chatNickname);

            string input = Console.ReadLine();
            while (input != string.Empty)
            {
                channel.Chat(chatNickname, input);
                input = Console.ReadLine();
            }
            channel.Bye(chatNickname);
        }
Exemplo n.º 2
0
        void RunChat(IChat channel, string chatNickname)
        {
            Console.WriteLine("\nPress [Enter] to exit\n");
            channel.Hello(chatNickname);

            string input = Console.ReadLine();

            while (input != string.Empty)
            {
                channel.Chat(chatNickname, input);
                input = Console.ReadLine();
            }
            channel.Bye(chatNickname);
        }
Exemplo n.º 3
0
 public ActionResult Message(string Id)
 {
     return(PartialView("_MessagePartialViewView", _chat.Chat(Id)));
 }