C# Class Microsoft.AspNetCore.SpaServices.SpaRouteConstraint

Inheritance: IRouteConstraint
显示文件 Open project: aspnet/JavaScriptServices

Public Methods

Method Description
Match ( HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection ) : bool
SpaRouteConstraint ( string clientRouteTokenName ) : System

Private Methods

Method Description
HasDotInLastSegment ( string uri ) : bool

Method Details

Match() public method

public Match ( HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection ) : bool
httpContext HttpContext
route IRouter
routeKey string
values RouteValueDictionary
routeDirection RouteDirection
return bool

SpaRouteConstraint() public method

public SpaRouteConstraint ( string clientRouteTokenName ) : System
clientRouteTokenName string
return System