Beispiel #1
0
        internal void RemoveTagger(LinterTagger tagger)
        {
            lock (_managers)
            {
                _taggers.Remove(tagger);

                foreach (var manager in _managers)
                {
                    manager.RemoveFactory(tagger.Factory);
                }
            }
        }
Beispiel #2
0
        internal Task AddTagger(LinterTagger tagger, Func <Task> callback)
        {
            lock (_managers)
            {
                _taggers.Add(tagger);

                foreach (var manager in _managers)
                {
                    manager.AddFactory(tagger.Factory);
                }
            }

            return(callback());
        }
 internal bool TryGetValue(string filePath, out LinterTagger tagger)
 {
     return(_taggers.TryGetValue(filePath, out tagger));
 }
 internal void Remove(LinterTagger tagger)
 {
     _taggers.Remove(tagger.FilePath);
 }
 internal void Add(LinterTagger tagger)
 {
     _taggers.Add(tagger.FilePath, tagger);
 }