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.")); }
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); }
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); }