public ClientBase(string ip, int port, string username) : base(ip, port) { this._registrationModel = new SocketRegistrationModel() { Username = username }; LoopConnect(); }
public ClientBase(string ip, string port, string username) : base(ip, port) { this._registrationModel = new SocketRegistrationModel() { Username = username }; if (!KeepConnectionInSeparateThread) { LoopConnect(); } else { new Thread(() => { LoopConnect(); }).Start(); } }