public MSBuildPropertiesCache(Lifetime lifetime, ViewableProjectsCollection viewableProjectsCollection) { myViewableProjectsCollection = viewableProjectsCollection; myData = new Dictionary<IProject, Dictionary<string, string>>(); myViewableProjectsCollection.Projects.View(lifetime, project => { }, project => { if (myData.ContainsKey(project)) { myData.Remove(project); } }); }
public MSBuildPropertiesCache(Lifetime lifetime, ViewableProjectsCollection viewableProjectsCollection) { myViewableProjectsCollection = viewableProjectsCollection; myData = new Dictionary <IProject, Dictionary <string, string> >(); myViewableProjectsCollection.Projects.View(lifetime, project => { }, project => { if (myData.ContainsKey(project)) { myData.Remove(project); } }); }