public HttpSubContext(IHttpContext parent, HttpRouteMatchResult match) { _parent = parent; if (match.TrimmedRoute != null) { _route = match.TrimmedRoute.TrimStart('/'); } if (match.RouteParameters != null) { _routeParameters = match.RouteParameters.ToChainedStringLookup(parent.RouteParameters); } }
public IHttpContext Dive(HttpRouteMatchResult match) => new HttpSubContext(this, match);