Ejemplo n.º 1
0
        protected override System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            NamespaceAdjuster.Initialize(this);
            base.Initialize();

            return(base.InitializeAsync(cancellationToken, progress));
        }
        /// <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));
        }
 public static void Initialize(
     Package package,
     ISolutionSelectionService solutionSelectionService,
     IInnerPathFinder innerPathFinder,
     INamespaceAdjusterOptions options)
 {
     Instance = new NamespaceAdjuster(
         package,
         solutionSelectionService,
         innerPathFinder,
         options);
     Instance.Initialize();
 }
 public static void Initialize(NamespaceAdjusterPackage package)
 {
     Instance = new NamespaceAdjuster(package);
     Instance.Initialize();
 }