Skip to content

Instantly share code, notes, and snippets.

@khellang
Last active August 29, 2015 14:01
Show Gist options
  • Save khellang/abd92311a4ca347cb4d7 to your computer and use it in GitHub Desktop.
Save khellang/abd92311a4ca347cb4d7 to your computer and use it in GitHub Desktop.
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