Beispiel #1
0
        public static async Task InitializeAsync(AsyncPackage package)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(package.DisposalToken);

            OleMenuCommandService commandService = await package.GetServiceAsync((typeof(IMenuCommandService))) as OleMenuCommandService;

            Instance = new EnableDisableDataCollectorCommand(package, commandService);
        }
Beispiel #2
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            //string projectId = "cmp3060m-csw";
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await EnableDisableDataCollectorCommand.InitializeAsync(this);

            await RDTClass.InitializeAsync(this);

            IVsRunningDocumentTable rdt = (IVsRunningDocumentTable)
                                          await GetServiceAsync(typeof(SVsRunningDocumentTable));

            Assumes.Present(rdt);
            rdt.AdviseRunningDocTableEvents(RDTClass.mRDTClass, out RDTClass.rdtCookie);
            //CloudAuth.AuthImplicit(projectId);
            ErrorHandler.Initialize(this);
            ErrorHandler.AddMessage("Data Collector Extension Running.");
        }