//public RDTExplWindow(Package aPackage) //{ // ThreadHelper.ThrowIfNotOnUIThread(); // mDte = (DTE)Package.GetGlobalService(typeof(DTE)); // mRDTExplWindow = new RDTExplWindow(aPackage); // mRDTExplWindow.Advise(this); //} public static async Task InitializeAsync(AsyncPackage aPackage) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(aPackage.DisposalToken); eDte = (DTE2)Package.GetGlobalService(typeof(DTE)); mRDTClass = new RDTClass(); Instance = new RDTClass(); errList = eDte.ToolWindows.ErrorList; errList.ShowMessages = false; errList.ShowWarnings = false; }
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."); }