/// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            var options           = (OptionPage)GetDialogPage(typeof(OptionPage));
            var solutionSelection = new SolutionSelectionService();
            var innerPathFinder   = new InnerPathFinderService();
            var namespaceBuilder  = new NamespaceBuilderService(options);

            NamespaceAdjuster.Initialize(this, solutionSelection, innerPathFinder, namespaceBuilder, options);
            base.Initialize();
        }
        protected override System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            var options           = (OptionPage)GetDialogPage(typeof(OptionPage));
            var solutionSelection = new SolutionSelectionService();
            var innerPathFinder   = new InnerPathFinderService();

            NamespaceAdjuster.Initialize(this, solutionSelection, innerPathFinder, options);
            base.Initialize();

            return(base.InitializeAsync(cancellationToken, progress));
        }
Exemple #3
0
 public VsServiceInfo(NamespaceAdjuster namespaceAdjuster)
 {
     NamespaceAdjuster        = namespaceAdjuster;
     SolutionSelectionService = new SolutionSelectionService();
     InnerPathFinder          = new InnerPathFinderService();
 }