Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created January 12, 2016 02:57
Show Gist options
  • Save dcomartin/a4e9353d0c82d83bcd19 to your computer and use it in GitHub Desktop.
Save dcomartin/a4e9353d0c82d83bcd19 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.DependencyInjection;
using Nancy.Owin;
namespace AspNet5Nancy
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app)
{
app.UseIISPlatformHandler();
app.UseOwin(pipeline =>
{
pipeline.UseNancy(options => options.Bootstrapper = new MyNancyBootstrapper());
});
}
// Entry point for the application.
public static void Main(string[] args) => WebApplication.Run<Startup>(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment