Facebook
Welcome to Techsapphire

nancy

Self Hosting using Nancy

Code: static class Program { /// /// The main entry point for the application. /// static NancyHost host; public class SampleModule : Nancy.NancyModule { public SampleModule() : base(“/Sample”) { Get(“/”, _ => “Hello World!”); } } public class MainModule : Nancy.NancyModule { public MainModule() : base(“/”) { Get(“/”, _ => { return “Hello Base!”; }); […]