CmisSync.Lib.ClientBrandBase.SetupServer C# (CSharp) Method

SetupServer() public method

Setup the CMIS server to support Client Brand
public SetupServer ( ServerCredentials credentials ) : bool
credentials CmisSync.Lib.Config.ServerCredentials
return bool
        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;
            }
        }