protected override TaskList GetTaskList(IServiceProvider serviceProvider, ModulePageInfo selectedModulePage) { var connection = (Connection)serviceProvider.GetService(typeof(Connection)); var serverManager = new ServerManager(); var siteName = connection.ConfigurationPath.SiteName; var virtualPath = connection.ConfigurationPath.ApplicationPath + connection.ConfigurationPath.FolderPath; BpmOnlineSite site; try { site = new BpmOnlineSite(serverManager, siteName, virtualPath); } catch (Exception) { return(null); } if (site.ConnectionStringsConfig == null) { return(null); } if (_lastConfigPath != connection.ConfigurationPath || _cachedTaskList == null) { _lastConfigPath = connection.ConfigurationPath; _cachedTaskList = new BpmOnlineHomepageTaskList(this, MethodTaskItemUsages.TaskList, site); } return(_cachedTaskList); }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { var connection = (Connection)GetService(typeof(Connection)); // We want the module configuration to be available on all levels except file. return(connection.ConfigurationPath.PathType != ConfigurationPathType.File); }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { Connection conn = (Connection)GetService(typeof(Connection)); ConfigurationPathType pt = conn.ConfigurationPath.PathType; return(pt == ConfigurationPathType.Server); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(AuthenticationPage), "Authentication", "Configure authentication settings for sites and applications", Resources.authentication_36, Resources.authentication_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(DefaultDocumentPage), "Default Document", "Configure default files to return when clients do not specify a file in a request", Resources.default_document_36, Resources.default_document_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); ModulePageInfo modulePageInfo = new ModulePageInfo(this, typeof(imageCopyrightUIPage), "Image Copyright", "Image Copyright"); controlPanel.RegisterPage(modulePageInfo); }
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, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(HttpErrorsPage), "Error Pages", "Configure pages to return when errors occur", Resources.custom_error_36, Resources.custom_error_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(ResponseHeadersPage), "HTTP Response Headers", "Configure HTTP headers that are added to responses from the Web server", Resources.response_header_36, Resources.response_header_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(HandlersPage), "Handler Mappings", "Specify resources that handle responses for specific request types", Resources.handlers_36, Resources.handlers_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(RewritePage), "URL Rewrite", "Provide URL and content rewriting capabilities based on rules", Resources.url_rewrite_36, Resources.url_rewrite_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(IsapiFiltersPage), "ISAPI Filters", "Specify ISAPI filters that modify IIS functionality", Resources.isapi_filters_36, Resources.isapi_filters_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(TraceFailedRequestsPage), "Failed Request Tracing Rules", "Configure logging of failed request traces", Resources.trace_failed_requests_36, Resources.trace_failed_requests_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(AuthorizationPage), "Authorization Rules", "Configure rules for authorizing users to access websites and applications", Resources.authorization_36, Resources.authorization_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(MimeMapPage), "MIME Types", "Configure extensions and associated content types that are served as static files", Resources.mime_map_36, Resources.mime_map_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(AccessPage), "SSL Settings", "Specify requirements for SSL and client certificates.", Resources.access_36, Resources.access_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(JexusPage), "Jexus Specific", "Configure Jexus specific settings", Resources.jexus_36, Resources.jexus_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(FastCgiPage), "FastCGI Settings", "Configure FastCGI process application pools", Resources.response_header_36, Resources.response_header_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(CompressionPage), "Compression", "Configure settings to compress responses", Resources.compression_36, Resources.compression_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(LoggingPage), "Logging", "Configure how IIS logs requests on the Web server", Resources.logging_36, Resources.logging_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(CertificatesPage), "Server Certificates", "Request and manage certificates for websites that use SSL", Resources.certificates_36, Resources.certificates_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(ModulesPage), "Modules", "Configure native and managed code modules that process requests on the Web server", Resources.modules_36, Resources.modules_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(IsapiCgiRestrictionPage), "ISAPI and CGI Restrictions", "Restrict or enable ISAPI and CGI extensions on the Web server", Resources.isapi_cgi_restriction_36, Resources.isapi_cgi_restriction_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(IpSecurityPage), "IP Address and Domain Restrictions", "Restrict or grant access to Web content based on IP addresses or domain names", Resources.ip_restriction_36, Resources.ip_restriction_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(RequestFilteringPage), "Request Filtering", "Use this feature to configure filtering rules", Resources.request_filtering_36, Resources.request_filtering_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo(this, typeof(HttpApiPage), "HTTP API", "Manage certificate bindings for websites that use SSL", Resources.http_36, Resources.http_36); controlPanel.RegisterPage(modulePage); }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { Connection service = (Connection)this.GetService(typeof(Connection)); if (service.ConfigurationPath.PathType != ConfigurationPathType.Server) { return(false); } return(base.IsPageEnabled(pageInfo)); }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { Connection connection = (Connection)GetService(typeof(Connection)); ICollection <string> currentBindingProtocols = connection.ConfigurationPath.GetBindingProtocols(this); // We only want the module configuration to be available on site, application of folder levels. return(connection.ConfigurationPath.PathType == ConfigurationPathType.Site || connection.ConfigurationPath.PathType == ConfigurationPathType.Application || connection.ConfigurationPath.PathType == ConfigurationPathType.Folder); }
/// <summary> /// Called by IIS to register the modulepage /// </summary> /// <param name="serviceProvider">The service provider</param> /// <param name="moduleInfo">The module info</param> protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); //load the icon System.IO.Stream icoStream = this.GetType().Assembly.GetManifestResourceStream("IISGeoIP2blockModule.resources.geoblock.png"); System.Drawing.Bitmap ico = new System.Drawing.Bitmap(icoStream); icoStream.Close(); IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); ModulePageInfo modulePageInfo = new ModulePageInfo(this, typeof(GeoblockModuleDialogPage), "Geoblock Module", "Blocks access by country referenced by client IP address.", ico, ico, "Blocks access by country referenced by client IP address."); controlPanel.RegisterPage(ControlPanelCategoryInfo.Security, modulePageInfo); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)this.GetService(typeof(IControlPanel)); var modulePage = new ModulePageInfo( this, typeof(CachingPage), "Output Caching", "Specify rules for caching served content in the output cache", Resources.caching_36, Resources.caching_36); controlPanel.RegisterPage(modulePage); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); Debug.Assert(controlPanel != null, "Couldn't get IControlPanel"); //PHPInfo page var modulePageInfo = new ModulePageInfo(this, typeof(PHPInfoPage), Resources.PHPInfoPageTitle, Resources.PHPInfoPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.PHPInfoPageLongDescription); controlPanel.RegisterPage(modulePageInfo); //PHP Settings page modulePageInfo = new ModulePageInfo(this, typeof(AllSettingsPage), Resources.AllSettingsPageTitle, Resources.AllSettingsPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.AllSettingsPageLongDescription); controlPanel.RegisterPage(modulePageInfo); modulePageInfo = new ModulePageInfo(this, typeof(ErrorReportingPage), Resources.ErrorReportingPageTitle, Resources.ErrorReportingPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.ErrorReportingPageLongDescription); controlPanel.RegisterPage(modulePageInfo); modulePageInfo = new ModulePageInfo(this, typeof(RuntimeLimitsPage), Resources.RuntimeLimitsPageTitle, Resources.RuntimeLimitsPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.RuntimeLimitsPageLongDescription); controlPanel.RegisterPage(modulePageInfo); //PHP Extensions page modulePageInfo = new ModulePageInfo(this, typeof(AllExtensionsPage), Resources.AllExtensionsPageTitle, Resources.AllExtensionsPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.AllExtensionsPageLongDescription); controlPanel.RegisterPage(modulePageInfo); //PHPPage - PHP feature start page modulePageInfo = new ModulePageInfo(this, typeof(PHPPage), Resources.PHPPageTitle, Resources.PHPPageDescription, Resources.PHPLogo16, Resources.PHPLogo32, Resources.PHPPageLongDescription); controlPanel.RegisterPage(ControlPanelCategoryInfo.Iis, modulePageInfo); controlPanel.RegisterPage(ControlPanelCategoryInfo.ApplicationDevelopment, modulePageInfo); }
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) { base.Initialize(serviceProvider, moduleInfo); // register the Module Page - RequestPage var controlPanel = (IControlPanel)GetService(typeof(IControlPanel)); Stream icoStream = GetType().Assembly.GetManifestResourceStream("CosignManagedAdminClient.cosign_3d_lg.gif"); if (icoStream != null) { var ico = new Bitmap(icoStream); icoStream.Close(); var modulePageInfo = new ModulePageInfo(this, typeof(CosignModuleConfigurationPage), "Cosign", "Configure the cosign authentication service", ico, ico); controlPanel.RegisterPage(modulePageInfo); } else { var modulePageInfo = new ModulePageInfo(this, typeof(CosignModuleConfigurationPage), "Cosign", "Configure the cosign authentication service"); controlPanel.RegisterPage(modulePageInfo); } }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { Connection connection = (Connection)GetService(typeof(Connection)); // We only want the module configuration to be available on server and site levels. return (connection.ConfigurationPath.PathType == ConfigurationPathType.Server || connection.ConfigurationPath.PathType == ConfigurationPathType.Site); }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { Connection conn = (Connection)GetService(typeof(Connection)); return conn.ConfigurationPath.PathType == ConfigurationPathType.Site; }
protected override bool IsPageEnabled(ModulePageInfo pageInfo) { var connection = (Connection)GetService(typeof(Connection)); // We want the module configuration to be available on all levels except file. return (connection.ConfigurationPath.PathType != ConfigurationPathType.File); }