Last active
August 29, 2015 14:01
-
-
Save khellang/abd92311a4ca347cb4d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNet.Builder; | |
namespace KWebStartup | |
{ | |
public class Startup | |
{ | |
public void Configure(IBuilder app) | |
{ | |
// Doesn't require a dependency on anything. | |
// It's just an extension method on Func<AppFunc, AppFunc>. | |
// The could live in core Nancy. | |
app.UseOwin(owin => owin.UseNancy()); | |
// This requires a dependency on Microsoft.AspNet.HttpAbstractions. | |
// It's an extension method on IBuilder. | |
// This will probably live in a Nancy.Owin.Builder package. | |
app.UseNancy(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment