Class ContentRouter
An Microsoft.AspNetCore.Routing.IRouter implementation that is used in Microsoft.AspNetCore.Routing.VirtualPathData results for content routing
Inheritance
System.Object
ContentRouter
Implements
Microsoft.AspNetCore.Routing.IRouter
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public class ContentRouter : Object, IRouter
Fields
Instance
A singleton instance of ContentRouter
Declaration
public static ContentRouter Instance
Field Value
Type | Description |
---|---|
ContentRouter |
Methods
GetVirtualPath(VirtualPathContext)
Not supported for ContentRouter, it will throw System.NotSupportedException when invoked
Declaration
public VirtualPathData GetVirtualPath(VirtualPathContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Routing.VirtualPathContext | context |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Routing.VirtualPathData |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Will always throw this since method is not suppported |
RouteAsync(RouteContext)
Not supported for ContentRouter, it will throw System.NotSupportedException when invoked
Declaration
public Task RouteAsync(RouteContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Routing.RouteContext | context |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Will always throw this since method is not suppported |
Implements
Microsoft.AspNetCore.Routing.IRouter