Example #1
0
        public TestFileAddRemoveListener([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
        {
            ValidateArgs.NotNull(serviceProvider, "serviceProvider");

            projectDocTracker = serviceProvider.GetService(typeof(SVsTrackProjectDocuments)) as IVsTrackProjectDocuments2;
        }
 public SolutionEventsListener([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
 {
     ValidateArgs.NotNull(serviceProvider, "serviceProvider");
     this.solution = serviceProvider.GetService(typeof(SVsSolution)) as IVsSolution;
 }