Changing to list

This commit is contained in:
Ryan Nowak 2014-06-06 10:16:47 -07:00
parent d10682d15b
commit 28b89c8fe5
2 changed files with 3 additions and 3 deletions

View File

@ -12,10 +12,10 @@ namespace Microsoft.AspNet.Routing
{
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; }
}

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Builder
public async Task Invoke(HttpContext httpContext)
{
var context = new RouteContext(httpContext);
context.RouteData.Routers.Push(Router);
context.RouteData.Routers.Add(Router);
await Router.RouteAsync(context);
if (!context.IsHandled)