public void AnotherAlternative(IAppBuilder builder) { Assembly.Load("Nancy.ViewEngines.Spark"); builder .UseFunc <AppFunc>(ShowExceptions.Middleware) .UseType <ContentType>() .Map("/wilson", Wilson.App()) .Map("/wilsonasync", Wilson.App(true)) .Use(NancyAdapter.App()); /* * .RunCascade( * DefaultPage.App(), * NancyAdapter.App()); */ }
public AppFunc Configuration(IDictionary <string, object> props) { return(NancyAdapter.App()); }