// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNet.Routing; namespace RoutingSample { internal class OwinRouteEndpoint : IRouteEndpoint { private readonly Func, Task> _appFunc; public OwinRouteEndpoint(Func, Task> appFunc) { _appFunc = appFunc; } public Task Invoke(IDictionary context) { return _appFunc(context); } } }