Initialize() public static method

public static Initialize ( Microsoft.VisualStudio.Shell.Package package ) : void
package Microsoft.VisualStudio.Shell.Package
return void
Esempio n. 1
0
        protected async override void Initialize()
        {
            DTE = (DTE2)GetService(typeof(DTE));

            Options        = (Options)GetDialogPage(typeof(Options));
            Options.Saved += async(s, e) => await SetDefaults();

            await SetDefaults();

            Logger.Initialize(this, Vsix.Name);

            PackageService.Initialize(this);
            InstallPackageCommand.Initialize(this);
            RestorePackagesCommand.Initialize(this);

            base.Initialize();
        }
Esempio n. 2
0
        protected async override void Initialize()
        {
            DTE = (DTE2)GetService(typeof(DTE));

            Options        = (Options)GetDialogPage(typeof(Options));
            Options.Saved += async(s, e) => await SetDefaults();

            await SetDefaults();

            Logger.Initialize(this, Vsix.Name);
            Telemetry.Initialize(this, Vsix.Version, "d8226d88-0507-4495-9c9c-63951a2151d3");

            PackageService.Initialize(this);
            InstallPackageCommand.Initialize(this);
            RestorePackagesCommand.Initialize(this);

            base.Initialize();
        }