Пример #1
0
        private static void Main(string[] args)
        {
            _mircServiceClient = new MircServiceClient();
            string username = "******" + Guid.NewGuid().ToString();
            new Thread(ReadMessages).Start();

            while (true)
            {
                Console.Write("Gigi : ");
                string readLine = Console.ReadLine();
                _mircServiceClient.SendMessage(new Message{Info = readLine,Username = username});
            }
        }
Пример #2
0
        private static void Main(string[] args)
        {
            _mircServiceClient = new MircServiceClient();
            string username = "******" + Guid.NewGuid().ToString();

            new Thread(ReadMessages).Start();

            while (true)
            {
                Console.Write("Gigi : ");
                string readLine = Console.ReadLine();
                _mircServiceClient.SendMessage(new Message {
                    Info = readLine, Username = username
                });
            }
        }