示例#1
0
        protected override void Initialize(IServiceProvider serviceProvider, Microsoft.Web.Management.Server.ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);
            IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel));

            controlPanel.RegisterPage(new ModulePageInfo(this, typeof(BlockLinksConfPage), "BlockLinks", "Configuration for the BlockLinks Custom Module."));
        }
示例#2
0
        protected override void Initialize(IServiceProvider serviceProvider, Microsoft.Web.Management.Server.ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);

            IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel));

            controlPanel.RegisterPage(new ModulePageInfo(this, typeof(ConfigModulePage), "HTTP Strict Transport Security", "Enable and configure HTTP Strict Transport Security."));
        }
        protected override void Initialize(IServiceProvider serviceProvider, Microsoft.Web.Management.Server.ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);
            //register the Module Page - RequestPage
            IControlPanel  controlPanel   = (IControlPanel)GetService(typeof(IControlPanel));
            ModulePageInfo modulePageInfo = new ModulePageInfo(this, typeof(RequestPage), "Current Requests", "Displays the current requests in all worker processes");

            controlPanel.RegisterPage(modulePageInfo);
        }
示例#4
0
        protected override void Initialize(IServiceProvider serviceProvider, Microsoft.Web.Management.Server.ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);

            IServiceContainer serviceContainer = (IServiceContainer)serviceProvider.GetService(typeof(IServiceContainer));

            this.AddCommonServices(serviceContainer);

            IExtensibilityManager extensibilityManager = (IExtensibilityManager)serviceProvider.GetService(typeof(IExtensibilityManager));

            this.RegisterProtocolProvider(serviceProvider, extensibilityManager);

            IControlPanel controlPanel = (IControlPanel)serviceProvider.GetService(typeof(IControlPanel));

            this.RegisterModulePage(controlPanel);
        }