コード例 #1
0
        public void GetLatest(IWorkspace workspace, IList <string> servicesToIgnore)
        {
            lock (_readLock)
            {
                var filesToIgnore = servicesToIgnore.Select(s => s + ".bite").ToList();

                var targetPath = EnvironmentVariables.GetWorkspacePath(workspace.ID);
                _resourceCatalog.SyncTo(ServerWorkspacePath, targetPath, true, true, filesToIgnore);
            }
        }
コード例 #2
0
 /// <summary>
 /// Overwrites this workspace with the server versions except for those provided.
 /// </summary>
 /// <param name="workspace">The workspace to be queried.</param>
 /// <param name="servicesToIgnore">The services being to be ignored.</param>
 public void GetLatest(IWorkspace workspace, IList <string> servicesToIgnore)
 {
     lock (_readLock)
     {
         // ReSharper disable RedundantAssignment
         var filesToIgnore = servicesToIgnore.Select(s => s += ".xml").ToList();
         // ReSharper restore RedundantAssignment
         var targetPath = EnvironmentVariables.GetWorkspacePath(workspace.ID);
         _resourceCatalog.SyncTo(ServerWorkspacePath, targetPath, true, true, filesToIgnore);
     }
 }