public static IWebHostBuilder UseJasper(this IWebHostBuilder builder, JasperHttpRegistry registry)
        {
            builder.UseSetting(WebHostDefaults.ApplicationKey, registry.ApplicationAssembly.FullName);

            registry.Http.BootstrappedWithinAspNetCore = true;
            var runtime = JasperRuntime.For(registry);

            builder.ConfigureServices(services =>
            {
                services.AddSingleton(runtime);

                JasperStartup.Register(runtime.Container, services, registry.Http.Routes.Router);
            });

            return(builder);
        }
Exemplo n.º 2
0
 public abstract void Configure(JasperHttpRegistry registry);