From fbe4da4db9f17b1f50f6cc5d7127f1c1acad097f Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 10 Sep 2014 12:44:52 -0700 Subject: [PATCH] Handle IBuilder rename to IApplicationBuilder. --- Routing.sln | 7 ++++++- samples/RoutingSample.Web/Startup.cs | 2 +- src/Microsoft.AspNet.Routing/BuilderExtensions.cs | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Routing.sln b/Routing.sln index 0729d9bf78..aef9202a9b 100644 --- a/Routing.sln +++ b/Routing.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.21708.0 +VisualStudioVersion = 14.0.22013.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0E966C37-7334-4D96-AAF6-9F49FBD166E3}" EndProject @@ -15,6 +15,11 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.Routing.Te EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "RoutingSample.Web", "samples\RoutingSample.Web\RoutingSample.Web.kproj", "{DB94E647-C73A-4F52-A126-AA7544CCF33B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C430C499-382D-47BD-B351-CF8F89C08CD2}" + ProjectSection(SolutionItems) = preProject + global.json = global.json + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/samples/RoutingSample.Web/Startup.cs b/samples/RoutingSample.Web/Startup.cs index 9e04b33f59..cafb52d9e7 100644 --- a/samples/RoutingSample.Web/Startup.cs +++ b/samples/RoutingSample.Web/Startup.cs @@ -12,7 +12,7 @@ namespace RoutingSample.Web { public class Startup { - public void Configure(IBuilder builder) + public void Configure(IApplicationBuilder builder) { builder.UseServices(services => { diff --git a/src/Microsoft.AspNet.Routing/BuilderExtensions.cs b/src/Microsoft.AspNet.Routing/BuilderExtensions.cs index 796ab04192..8fbf5b2bd9 100644 --- a/src/Microsoft.AspNet.Routing/BuilderExtensions.cs +++ b/src/Microsoft.AspNet.Routing/BuilderExtensions.cs @@ -7,7 +7,7 @@ namespace Microsoft.AspNet.Builder { public static class BuilderExtensions { - public static IBuilder UseRouter([NotNull] this IBuilder builder, [NotNull] IRouter router) + public static IApplicationBuilder UseRouter([NotNull] this IApplicationBuilder builder, [NotNull] IRouter router) { return builder.Use((next) => new RouterMiddleware(next, router).Invoke); }