Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Last active November 7, 2019 14:12
Show Gist options
  • Select an option

  • Save gsscoder/4960277 to your computer and use it in GitHub Desktop.

Select an option

Save gsscoder/4960277 to your computer and use it in GitHub Desktop.
Snippet that demonstrate how to run SimpleOwinApp (https://github.com/gsscoder/simpleowinapp) with Owin Http Listener (https://github.com/gsscoder/owinhttplistener)
var listener = new OwinHttpListener(
new WebApp().PrintRequest,
new IPAddress(new byte[] { 0, 0, 0, 0 }), 8899);
listener.Start();
listener.ListenAsync().Wait();
Console.ReadKey();
listener.Stop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment