public void Monitor(IVolatileToken whenProjectFileChanges) { lock (_tokens) { _tokens.Add(whenProjectFileChanges); } }
public FileWithSections(IFileSystem fileSystem, FullPath filename) { _fileSystem = fileSystem; _filename = filename; _fileUpdateVolatileToken = new FileUpdateVolatileToken(_fileSystem, filename); _sections = new Lazy<Dictionary<string, List<string>>>(ReadFile); }
private void AddToken(IVolatileToken token) { if (_tokens == null) { _tokens = new List <IVolatileToken>(); } _tokens.Add(token); }
public Project(IConfigurationSectionProvider configurationSectionProvider, FullPath rootPath) { _rootPath = rootPath; _configurationToken = configurationSectionProvider.WhenUpdated(); _directoryFilter = new DirectoryFilter(configurationSectionProvider); _fileFilter = new FileFilter(configurationSectionProvider); _searchableFilesFilter = new SearchableFilesFilter(configurationSectionProvider); }
public void AddToken(IVolatileToken volatileToken) { if (_tokens == null) { _tokens = new List <IVolatileToken>(); } _tokens.Add(volatileToken); }