public static Initialize ( Microsoft.VisualStudio.Shell.Package package ) : void | ||
package | Microsoft.VisualStudio.Shell.Package | |
return | void |
protected override void Initialize() { base.Initialize(); _dte = GetService(typeof(DTE)) as DTE2; _dispatcher = Dispatcher.CurrentDispatcher; Logger.Initialize(this, "Package Installer"); InstallPackage.Initialize(this); }
protected override void Initialize() { _dte = GetService(typeof(DTE)) as DTE2; Settings = (Settings)GetDialogPage(typeof(Settings)); Logger.Initialize(this, Vsix.Name); InstallPackage.Initialize(this); _control = new StatusbarControl(Settings, _dte); var injector = new StatusBarInjector(Application.Current.MainWindow); injector.InjectControl(_control); }
protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(); _dte = await GetServiceAsync(typeof(DTE)) as DTE2; Settings = (Settings)GetDialogPage(typeof(Settings)); Logger.Initialize(this, Vsix.Name); InstallPackage.Initialize(this); _control = new StatusbarControl(Settings, _dte); var injector = new StatusBarInjector(Application.Current.MainWindow); injector.InjectControl(_control); }