public ClientSocket(ClientSocketSettings clientSettings) { _waitHandle = new[] { new AutoResetEvent(false) }; this.clientSettings = clientSettings; this.prefixHandler = new PrefixHandler(); this.messageHandler = new MessageHandler(); }