Пример #1
0
        public SparkleFetcher(string server, string required_fingerprint, string remote_path,
            string target_folder, bool fetch_prior_history, string canonical_name, string repository, string path,
            string user, string password, ActivityListener activityListener)
            : base(server, required_fingerprint,
                remote_path, target_folder, fetch_prior_history, repository, path, user, password)
        {
            Console.WriteLine("Cmis SparkleFetcher constructor");
            TargetFolder = target_folder;
            RemoteUrl    = new Uri (server);

            Directory.CreateDirectory(Path.Combine(SparkleFolder.ROOT_FOLDER, canonical_name));

            Cmis cmis = new Cmis(canonical_name, path, remote_path, server, user, password, repository, activityListener);
            cmis.Sync();
        }
Пример #2
0
 public void Sync()
 {
     testServers.ForEach(delegate(TestServer testServer)
     {
         Cmis cmis = new Cmis(
             testServer.canonical_name,
             testServer.localPath,
             testServer.remoteFolderPath,
             testServer.url,
             testServer.user,
             testServer.password,
             testServer.repositoryId
         );
         cmis.Sync();
     });
 }