Skip to content

Instantly share code, notes, and snippets.

@jchannon
Forked from grumpydev/Startup.cs
Created January 15, 2013 11:06
Show Gist options
  • Save jchannon/4537916 to your computer and use it in GitHub Desktop.
Save jchannon/4537916 to your computer and use it in GitHub Desktop.
namespace SelfHost
{
using System;
using Microsoft.Owin.Hosting;
using NancyKatana;
class Program
{
static void Main(string[] args)
{
string url = "http://localhost:8989";
using (WebApplication.Start<Startup>(url))
{
Console.WriteLine("Server running on {0}", url);
Console.ReadLine();
}
}
}
}
namespace NancyKatana
{
using Owin;
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseNancy();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment