Class PartialRouter<TIncoming, TOutgoing>
The concrete typed implementation of Partial
Namespace: EPiServer.Core.Routing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PartialRouter<TIncoming, TOutgoing> : PartialRouter where TIncoming : class, IContent where TOutgoing : class
Type Parameters
Name | Description |
---|---|
TIncoming | The type for which incoming routing is extended. |
TOutgoing | The type for which outgoing routing is extended. |
Constructors
PartialRouter(IPartialRouter<TIncoming, TOutgoing>)
Initializes a new instance of the PartialRouter<TIncoming, TOutgoing> class.
Declaration
public PartialRouter(IPartialRouter<TIncoming, TOutgoing> partialRouter)
Parameters
Type | Name | Description |
---|---|---|
IPartial |
partialRouter | The partial router. |
Properties
Router
Gets the encapsulated IPartialRouter<TContent, TRoutedData> instance.
Declaration
public virtual IPartialRouter<TIncoming, TOutgoing> Router { get; }
Property Value
Type | Description |
---|---|
IPartial |
The router. |
Methods
GetPartialVirtualPath(Object, UrlGeneratorContext)
Delegates the request to the encapsulated Get
Declaration
public override PartialRouteData GetPartialVirtualPath(object linkedData, UrlGeneratorContext urlGeneratorContext)
Parameters
Type | Name | Description |
---|---|---|
System. |
linkedData | The data to create a FURL for. |
Url |
urlGeneratorContext | The url generator context. |
Returns
Type | Description |
---|---|
Partial |
Overrides
RoutePartial(IContent, UrlResolverContext)
Delegates the request to encapulated Route
Declaration
public override object RoutePartial(IContent content, UrlResolverContext urlResolverContext)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
Url |
urlResolverContext | The url resolver context. |
Returns
Type | Description |
---|---|
System. |