Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit 28b89c8

Browse files
committed
Changing to list
1 parent d10682d commit 28b89c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Microsoft.AspNet.Routing/RouteData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class RouteData
1212
{
1313
public RouteData()
1414
{
15-
Routers = new Stack<IRouter>();
15+
Routers = new List<IRouter>();
1616
}
1717

18-
public Stack<IRouter> Routers { get; private set; }
18+
public List<IRouter> Routers { get; private set; }
1919

2020
public IDictionary<string, object> Values { get; set; }
2121
}

src/Microsoft.AspNet.Routing/RouterMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private RequestDelegate Next
3030
public async Task Invoke(HttpContext httpContext)
3131
{
3232
var context = new RouteContext(httpContext);
33-
context.RouteData.Routers.Push(Router);
33+
context.RouteData.Routers.Add(Router);
3434

3535
await Router.RouteAsync(context);
3636
if (!context.IsHandled)

0 commit comments

Comments
 (0)