diff --git a/samples/RoutingSample/AppBuilderExtensions.cs b/samples/RoutingSample/AppBuilderExtensions.cs deleted file mode 100644 index bd27fdde8f..0000000000 --- a/samples/RoutingSample/AppBuilderExtensions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. - -using Microsoft.AspNet.Routing; -using Microsoft.AspNet.Routing.Owin; -using Owin; - -namespace RoutingSample -{ - public static class AppBuilderExtensions - { - public static IRouteCollection UseRouter(this IAppBuilder app) - { - IRouteCollection routes = null; - app.UseBuilder((b) => routes = b.UseRouter()); - return routes; - } - } -} diff --git a/samples/RoutingSample/HttpContextRouteEndpoint.cs b/samples/RoutingSample/HttpContextRouteEndpoint.cs index 8e38c61cb2..87511eaacf 100644 --- a/samples/RoutingSample/HttpContextRouteEndpoint.cs +++ b/samples/RoutingSample/HttpContextRouteEndpoint.cs @@ -9,9 +9,9 @@ namespace RoutingSample { public class HttpContextRouteEndpoint : IRouteEndpoint { - private readonly Func _appFunc; + private readonly RequestDelegate _appFunc; - public HttpContextRouteEndpoint(Func appFunc) + public HttpContextRouteEndpoint(RequestDelegate appFunc) { _appFunc = appFunc; } diff --git a/samples/RoutingSample/OwinRouteEndpoint.cs b/samples/RoutingSample/OwinRouteEndpoint.cs index fab5337248..97b08013f6 100644 --- a/samples/RoutingSample/OwinRouteEndpoint.cs +++ b/samples/RoutingSample/OwinRouteEndpoint.cs @@ -23,7 +23,6 @@ namespace RoutingSample public async Task Send(HttpContext context) { var owinContext = context.GetFeature().Environment; - return _appFunc(owinContext); await _appFunc(owinContext); return true; } diff --git a/samples/RoutingSample/project.json b/samples/RoutingSample/project.json index eff9d5df3e..595e5694e5 100644 --- a/samples/RoutingSample/project.json +++ b/samples/RoutingSample/project.json @@ -10,11 +10,11 @@ "dependencies": { "Owin": "1.0", "Microsoft.Owin" : "2.1.0", - "Microsoft.Owin.Diagnostics" : "2.1.0", + "Microsoft.Owin.Diagnostics" : "2.1.0", "Microsoft.Owin.Host.HttpListener" : "2.1.0", "Microsoft.Owin.Hosting" : "2.1.0" } }, - "k10": {} + "k10": {} } }