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

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