Exemplo n.º 1
0
        public static async Task InitializeAsync(AsyncPackage package)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken);

            // VisualStudioが持つサービスを引っ張る
            var commandService = (await package.GetServiceAsync(typeof(IMenuCommandService))) as OleMenuCommandService;

            Instance = new CppReflectionWindowCommand(package, commandService);
        }
Exemplo n.º 2
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await CppReflectionWindowCommand.InitializeAsync(this);
        }