November Happy Hour will be moved to Thursday December 5th.

Class PartialRouter<TIncoming, TOutgoing>

The concrete typed implementation of PartialRouter.

Inheritance
System.Object
PartialRouter<TIncoming, TOutgoing>
Namespace: EPiServer.Core.Routing
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
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
IPartialRouter<TIncoming, TOutgoing> 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
IPartialRouter<TIncoming, TOutgoing>

The router.

Methods

GetPartialVirtualPath(Object, UrlGeneratorContext)

Delegates the request to the encapsulated GetPartialVirtualPath(TRoutedData, UrlGeneratorContext).

Declaration
public override PartialRouteData GetPartialVirtualPath(object linkedData, UrlGeneratorContext urlGeneratorContext)
Parameters
Type Name Description
System.Object linkedData

The data to create a FURL for.

UrlGeneratorContext urlGeneratorContext

The url generator context.

Returns
Type Description
PartialRouteData
Overrides

RoutePartial(IContent, UrlResolverContext)

Delegates the request to encapulated RoutePartial(TContent, UrlResolverContext).

Declaration
public override object RoutePartial(IContent content, UrlResolverContext urlResolverContext)
Parameters
Type Name Description
IContent content

The content.

UrlResolverContext urlResolverContext

The url resolver context.

Returns
Type Description
System.Object
Overrides

Extension Methods