public TfsGateway(IFileSystemManager fileSystemManager, IWorkspaceSelector workspaceSelector, IThreadingServices threadingServices) { _fileSystemManager = fileSystemManager; _workspaceSelector = workspaceSelector; this.Tfs = TfsCollectionFactory.Create(); _tfsCache = new TfsCache(Tfs, ROOT_FOLDER, threadingServices); _historyCacheManager = new HistoryCacheManager(this.VersionControlServer); }
public HistoryCache(int changeSetId, IServerPath serverPath, IEnumerable <Changeset> changeSets, HistoryCacheManager historyCacheManager) { _changeSetId = changeSetId; _serverPath = serverPath.AsString(); _changeSets = changeSets; _historyCacheManager = historyCacheManager; }