From 4d8ad24939a4cd28d0529e345075b4b65c01da1b Mon Sep 17 00:00:00 2001 From: fausio luis Date: Sat, 4 Jan 2020 19:06:54 +0200 Subject: [PATCH] retorn startup.cs to default configuration --- Helloword_core/Startup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Helloword_core/Startup.cs b/Helloword_core/Startup.cs index 9cde378..54c5ec8 100644 --- a/Helloword_core/Startup.cs +++ b/Helloword_core/Startup.cs @@ -15,11 +15,11 @@ public class Startup // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { - services.AddSingleton(); + //services.AddSingleton(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env, IHello novo) + public void Configure(IApplicationBuilder app, IHostingEnvironment env ) { if (env.IsDevelopment()) { @@ -30,7 +30,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IHello n app.Run(async (context) => { - await context.Response.WriteAsync(novo.SayHello()); + await context.Response.WriteAsync("hello work"); }); } }