// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { _startup.Configure(app); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { ApplicationStartup.Configure(app, env); var apiControllers = new[] { TodoStartup.GetAssembly() }; ApplicationStartup.ConfigureModules(app, env, apiControllers); }
/// <summary> /// Implement initial configurations /// </summary> /// <param name="app">Define a class that provides the mechanisms to configure an application's request pipeline</param> /// <param name="env"></param> public void Configure(IApplicationBuilder app, IHostingEnvironment env) { var cultureInfo = new CultureInfo("pt-BR"); cultureInfo.NumberFormat.CurrencySymbol = "R$"; CultureInfo.DefaultThreadCurrentCulture = cultureInfo; CultureInfo.DefaultThreadCurrentUICulture = cultureInfo; _startup.Configure(app, env); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { _startup.Configure(app); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.Run(async(context) => { await context.Response.WriteAsync("Hello World!"); }); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app) => _startup.Configure(app);
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { _startup.Configure(app, env); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { ApplicationStartup.Configure(app, env); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, IApiVersionDescriptionProvider provider) { _startup.Configure(app, env, provider); }