public bool SetupServer(ServerCredentials credentials) {
if (!this.TestServer(credentials)) {
return false;
}
IRepository repo = this.GetRepo(credentials);
if (repo == null) {
return false;
}
try {
this.session = repo.CreateSession();
return true;
} catch (Exception e) {
Logger.Debug(e.Message);
return false;
}
}