Nancy Self Host

public class SelfHost { static void Main(string[] args) { var url = "http://+:8080"; // If this throws an error, see "Running without Admin mode" mentioned here: // https://github.com/NancyFx/Nancy/wiki/Hosting-nancy-with-owin#katana---httplistener-selfhost using (WebApp.Start<OwinStartup>(url)) { Console.WriteLine("Running on {0}", url); Console.WriteLine("Press enter to exit"); Console.ReadLine(); } } }
Selfhosts NancyFx on Owin

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.