public bool TestServer(ServerCredentials credentials) {
IRepository repo = this.GetRepo(credentials);
if (repo == null) {
return false;
}
try {
ISession session = repo.CreateSession();
foreach (string path in this.PathList) {
try {
IDocument doc = session.GetObjectByPath(path) as IDocument;
if (doc == null) {
return false;
}
} catch (CmisObjectNotFoundException e) {
Logger.Debug(e.ErrorContent, e);
return false;
}
}
} catch (Exception e) {
Logger.Debug(e.Message, e);
return false;
}
return true;
}