Пример #1
0
        private static void RandomMessage()
        {
            var receiver = new ChatHubReceiver();

            receiver.Start();
            receiver.JoinOrLeave();
        }
Пример #2
0
        private static void RandomMessage()
        {
            var receiver = new ChatHubReceiver();

            receiver.Start();
            receiver.JoinOrLeave();
            while (true)
            {
                receiver.SendMessage();
                Thread.Sleep(400);
            }
        }