Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created July 15, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/a75f0cd9b8ad7f5dd4b1 to your computer and use it in GitHub Desktop.
Save dcomartin/a75f0cd9b8ad7f5dd4b1 to your computer and use it in GitHub Desktop.
Owin SelfHost
using System;
using Microsoft.Owin.Hosting;
namespace AspNetSelfHostDemo
{
class Program
{
static void Main(string[] args)
{
using (WebApp.Start<Startup>("http://localhost:8080"))
{
Console.WriteLine("Web Server is running.");
Console.WriteLine("Press any key to quit.");
Console.ReadLine();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment