Example #1
0
        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());
             */
        }
Example #2
0
 public AppFunc Configuration(IDictionary <string, object> props)
 {
     return(NancyAdapter.App());
 }