Last active
November 7, 2019 14:12
-
-
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)
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
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