Created
May 15, 2013 21:17
-
-
Save ianbattersby/5587478 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 Some.Demo { | |
using System; | |
using Fix.Katana; | |
using Microsoft.Owin.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var hostname = "localhost"; | |
var port = 3334; | |
using (WebApplication.Start<Startup>(string.Format("http://{0}:{1}/", hostname, port))) | |
{ | |
Console.WriteLine( | |
"Katana: listening at http://{0}:{1}/. Press CTRL-C to stop.", hostname, port); | |
while (!_stop) | |
{ | |
Console.ReadKey(); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment