I\'m self-hosting ASP.NET Web API and SignalR using OWIN. I start the server (on a console app) with this code:
using (WebApplication.Start(url))
You can use the WebApp.Start Method (String, Action) overload.
Example:
using (WebApplication.Start(url, appBuilder => new Startup(myObject).Configuration(appBuilder))) { Console.WriteLine("Running..."); Console.ReadLine(); }