AsmHighlighter.AsmHighlighter.Initialize C# (CSharp) Method

Initialize() protected method

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initilaization code that rely on services provided by VisualStudio.
protected Initialize ( ) : void
return void
        protected override void Initialize()
        {
            Trace.WriteLine (string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString()));
            base.Initialize();

            // Proffer the service.
#if true
            IServiceContainer serviceContainer = this as IServiceContainer;
            AsmHighlighterLanguageService langService = new AsmHighlighterLanguageService();
            langService.SetSite(this);
            serviceContainer.AddService(typeof(AsmHighlighterLanguageService),
                                        langService,
                                        true);
        }
#else