Initialize() public method

public Initialize ( ) : void
return void
        protected override void Initialize()
        {
            var dte     = this.GetService <DTE>();
            var version = dte.Version;

            base.Initialize();
            var properties = new Dictionary <string, string>();

            properties["Visual Studio Version"] = string.Format("{0} {1}", version, dte.Edition);


            IServiceContainer      serviceContainer = this;
            ServiceCreatorCallback creationCallback = CreateService;

            serviceContainer.AddService(typeof(SCommandManagerService), creationCallback, true);
            serviceContainer.AddService(typeof(SEventManager), creationCallback, true);

            var options = GetDialogPage(typeof(AppVeyorOptions)) as AppVeyorOptions;

            if (options != null)
            {
                var eventManager = this.GetService <SEventManager, IEventManager>();
                eventManager.AppVeyorOptions = options;
            }
            CommandSet commandSet = new CommandSet(this);

            commandSet.Initialize();

            Telemetry.Instance.TrackEvent("Extension initialized", properties);
        }
        protected override void Initialize()
        {
            var dte = this.GetService<DTE>();
            var version = dte.Version;
            base.Initialize();
            var properties = new Dictionary<string, string>();
            properties["Visual Studio Version"] = string.Format("{0} {1}", version, dte.Edition) ;

            IServiceContainer serviceContainer = this;
            ServiceCreatorCallback creationCallback = CreateService;
            serviceContainer.AddService(typeof(SCommandManagerService), creationCallback, true);
            serviceContainer.AddService(typeof(SEventManager), creationCallback, true);

            var options = GetDialogPage(typeof (AppVeyorOptions)) as AppVeyorOptions;
            if (options != null)
            {
                var eventManager = this.GetService<SEventManager, IEventManager>();
                eventManager.AppVeyorOptions = options;
            }
            CommandSet commandSet = new CommandSet(this);
            commandSet.Initialize();

            Telemetry.Instance.TrackEvent("Extension initialized", properties);
        }