diff --git a/src/Microsoft.AspNetCore.Routing/RouterMiddleware.cs b/src/Microsoft.AspNetCore.Routing/RouterMiddleware.cs index 765fbd814c..a8256dc5fa 100644 --- a/src/Microsoft.AspNetCore.Routing/RouterMiddleware.cs +++ b/src/Microsoft.AspNetCore.Routing/RouterMiddleware.cs @@ -48,10 +48,5 @@ namespace Microsoft.AspNetCore.Builder await context.Handler(context.HttpContext); } } - - private class RoutingFeature : IRoutingFeature - { - public RouteData RouteData { get; set; } - } } } diff --git a/src/Microsoft.AspNetCore.Routing/RoutingFeature.cs b/src/Microsoft.AspNetCore.Routing/RoutingFeature.cs new file mode 100644 index 0000000000..30b88ac1b9 --- /dev/null +++ b/src/Microsoft.AspNetCore.Routing/RoutingFeature.cs @@ -0,0 +1,10 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNetCore.Routing +{ + public class RoutingFeature : IRoutingFeature + { + public RouteData RouteData { get; set; } + } +}