-
-
Save jchannon/4537916 to your computer and use it in GitHub Desktop.
This file contains 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
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(); | |
} | |
} | |
} | |
} |
This file contains 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
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