Skip to content
This repository has been archived by the owner. It is now read-only.
OWIN adapter for Microsoft.Net.Http.Server (WebListener)
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitattributes
.gitignore
LICENSE
README.md

README.md

OWIN WebListener Host NuGet Badge

OWIN host for Microsoft.Net.Http.Server (aka WebListener). This is forked from Microsoft.Owin.Host.HttpListener and adapted.

1. Using With Microsoft.Owin.Hosting

var startOptions = new StartOptions("http://localhost:1083")
{
    ServerFactory = typeof(OwinWebListener).Assembly.GetName().Name
};

using (WebApp.Start(startOptions, app => {...} ))
{
    Console.WriteLine(@"OwinWebListener running via Microsoft.Owin.Hosting...");
    Console.ReadLine();
}

1. Using OwinWebListener directly

using (var listener = new OwinWebListener())
{
    listener.Start(yourAppFunc, "http://localhost:1083");

    Console.WriteLine(@"OwinWebListener running standalone...");
    Console.ReadLine();
}

License

OwinWebListenerHost is licensed under Apache 2 Licence in accordance with the terms of the KatanaProject.

Contact

Feedback, compliments or criticism: @randompunter

You can’t perform that action at this time.