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

                _tokens.Add(volatileToken);
            }
 public void Monitor(IVolatileToken whenProjectFileChanges) {
     lock (_tokens) {
         _tokens.Add(whenProjectFileChanges);
     }
 }