Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Last active November 7, 2019 14:12
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 gsscoder/4960277 to your computer and use it in GitHub Desktop.
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