// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, IServiceProvider serviceProvider) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); libraries.Configure(serviceProvider); }
public Application Build() { if (config == null) { throw new ArgumentNullException("No configuration provided"); } AddCoreServices(config, serviceContainer); libraries.UseLogger(Log.Logger); libraries.ConfigureServices(serviceContainer); var services = serviceContainer.BuildServiceProvider(); libraries.Configure(services); return(services.GetService <Application>()); }