public void Process(string content)
        {
            _client.Name = content;
            _messageService.SaveMessage(ChatConstants.Me, content);
            Message greetMessage = new Message {
                Type = MessageType.Chat, Content = content
            };

            _connectivityService.Send(greetMessage.ToJson().ToByteArray());
            _chatIo.GetNextMessage();
        }
        public void Process(string content)
        {
            _client.Name = content;
            Message greetMessage = new Message {
                Type = MessageType.FirstMessage, Content = content
            };

            this.Wait().
            Until(() => _answerRecieved).
            Repeat(() => _connectivityService.Send(greetMessage.ToJson().ToByteArray()));

            this.Wait().
            Until(() => _otherClientNameRecieved).
            Start();

            _connectivityService.onMessageRecieved -= OnMessageecieved;
            _chatIo.Write("Connection Established.Start dialog");
            _client.ChangeStrategy(Container.LiveConnectionSt);
        }