public static IAppBuilder UseNancy <TContainer>(this IAppBuilder app, IBootstrapper <TContainer> bootstrapper, TContainer container) { Check.NotNull(bootstrapper, nameof(bootstrapper)); Check.NotNull(container, nameof(container)); var application = bootstrapper.InitializeApplication(container); return(app.UseNancy(application)); }
public static IAppBuilder UseNancy(this IAppBuilder app, IBootstrapper bootstrapper, IPlatform platform) { Check.NotNull(platform, nameof(platform)); Check.NotNull(bootstrapper, nameof(bootstrapper)); var application = bootstrapper.InitializeApplication(platform); return(app.UseNancy(application)); }