Class RoutableDocumentFilter
Utility class used to check if the current request is for a front-end request
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Routing
Assembly: Umbraco.Web.Common.dll
Syntax
public sealed class RoutableDocumentFilter : IRoutableDocumentFilter
Remarks
There are various checks to determine if this is a front-end request such as checking if the request is part of any reserved paths or existing MVC routes.
Constructors
View SourceRoutableDocumentFilter(IOptions<GlobalSettings>, IOptions<WebRoutingSettings>, IHostingEnvironment, EndpointDataSource)
Initializes a new instance of the RoutableDocumentFilter class.
Declaration
public RoutableDocumentFilter(IOptions<GlobalSettings> globalSettings, IOptions<WebRoutingSettings> routingSettings, IHostingEnvironment hostingEnvironment, EndpointDataSource endpointDataSource)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings | |
Microsoft.Extensions.Options.IOptions<WebRoutingSettings> | routingSettings | |
IHostingEnvironment | hostingEnvironment | |
Microsoft.AspNetCore.Routing.EndpointDataSource | endpointDataSource |
Methods
View SourceIsDocumentRequest(String)
Checks if the request is a document request (i.e. one that the module should handle)
Declaration
public bool IsDocumentRequest(string absPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | absPath |
Returns
Type | Description |
---|---|
System.Boolean |