public TfsCache(TfsTeamProjectCollection tfs, string rootFolder, IThreadingServices threadingServices) { this.Tfs = tfs; this.VersionControlServer = Tfs.GetService <VersionControlServer>(); _folders = new TfsFolderCache(rootFolder, TimeSpan.FromSeconds(5), VersionControlServer, threadingServices); _files = new TfsFilesCache(rootFolder, TimeSpan.FromSeconds(30), VersionControlServer, threadingServices); }
public Worker(ISupportBranching branchableComponent, Folders.ComponentsFolder targetComponentsFolder, IThreadingServices threadingServices, ILogger logger) { _branchableComponent = branchableComponent; _targetComponentsFolder = targetComponentsFolder; _threadingServices = threadingServices; _logger = logger; }
public WpfApplicationServices(string applicationUniqueName, ILoggerFactory loggerFactory, IThreadingServices threadingServices) { _applicationUniqueName = applicationUniqueName; _logger = loggerFactory.CreateLogger(this.GetType()); _threadingServices = threadingServices; _userInterfaceServices = new WpfUserInterfaceServices(this); Application.Current.Exit += Application_Exit; threadingServices.StartNewTask(RegisterToMainWindowClosing); }
public TfsCachedItems(string rootFolder, TimeSpan refreshInterval, VersionControlServer versionControlServer, IThreadingServices threadingServices) { _rootFolder = rootFolder; _refreshInterval = refreshInterval; this.VersionControlServer = versionControlServer; RebuildCache(); _autoResetEvent = threadingServices.CreateAutoResetEvent(false); threadingServices.StartNewTask(RebuildCacheLoop); }
public RequestQueue(ThrottlingOptions options) { if (options == null) { throw new ArgumentNullException("options"); } _threading = options.ThreadingServices; _activeThreadsBeforeLocalRequestsQueue = options.ActiveThreadsBeforeLocalRequestsQueue; _activeThreadsBeforeRemoteRequestsQueue = options.ActiveThreadsBeforeRemoteRequestsQueue; _queueLengthBeforeIncomingRequestsRejected = options.QueueLengthBeforeIncomingRequestsRejected; _maxThreads = _threading.GetMaxThreads(); _executeIfNeeded = ExecuteIfNeeded; }
public TfsFilesCache(string rootFolder, TimeSpan refreshInterval, VersionControlServer versionControlServer, IThreadingServices threadingServices) : base(rootFolder, refreshInterval, versionControlServer, threadingServices) { }
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 MergeSetsReader(IThreadingServices threadingServices, ILoggerFactory loggerFactory) { _threadingServices = threadingServices; this.Logger = loggerFactory.CreateLogger(this.GetType()); }