public void Login(string server, string user, string password, string authentication) { if (SessionInstance == null) { SessionInstance = new ARSession(); } //has been login if (SessionInstance.HasSession()) { return; } //has not been login SessionInstance.Login(server, user, password); }