Changing to list
This commit is contained in:
parent
d10682d15b
commit
28b89c8fe5
|
|
@ -12,10 +12,10 @@ namespace Microsoft.AspNet.Routing
|
||||||
{
|
{
|
||||||
public RouteData()
|
public RouteData()
|
||||||
{
|
{
|
||||||
Routers = new Stack<IRouter>();
|
Routers = new List<IRouter>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Stack<IRouter> Routers { get; private set; }
|
public List<IRouter> Routers { get; private set; }
|
||||||
|
|
||||||
public IDictionary<string, object> Values { get; set; }
|
public IDictionary<string, object> Values { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
public async Task Invoke(HttpContext httpContext)
|
public async Task Invoke(HttpContext httpContext)
|
||||||
{
|
{
|
||||||
var context = new RouteContext(httpContext);
|
var context = new RouteContext(httpContext);
|
||||||
context.RouteData.Routers.Push(Router);
|
context.RouteData.Routers.Add(Router);
|
||||||
|
|
||||||
await Router.RouteAsync(context);
|
await Router.RouteAsync(context);
|
||||||
if (!context.IsHandled)
|
if (!context.IsHandled)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue