Sample Owin HTTP listener for .NET 4.5. This library uses Owin.Types from http://www.myget.org/F/owin/ and HttpHelpers.
- Nothing more than sample.
- Plase note that this project is in early stages of development.
using AppFunc = Func<IDictionary<string, object>, Task>;
var listener = new OwinHttpListener(
new OwinApplication().ProcessRequest, // with AppFunc signature
8899); // localhost:8899
server.Start();
listener.ListenAsync().Wait();
Console.ReadKey();
listener.Stop();Giacomo Stelluti Scala