public void Disconnect(bool dispose = false) { ClientConnector?.Disconnect(dispose); if (dispose) { this.Dispose(); this.ClientConnector.Dispose(); } }