コード例 #1
0
        protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await base.InitializeAsync(cancellationToken, progress);

            await ViewStartPagePlus.InstantiateAsync(this);

            await StartPagePlusOptions.InstantiateAsync(this);

            //await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
        }
コード例 #2
0
        protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await base.InitializeAsync(cancellationToken, progress);

            await ViewStartPagePlus.InstantiateAsync(this);

            await StartPagePlusOptions.InstantiateAsync(this);

            this.SolutionEvents          = Dte.Events.SolutionEvents;
            SolutionEvents.Opened       += OnSolutionOpened;
            SolutionEvents.AfterClosing += SolutionEventsOnAfterClosing;
        }