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"); }); } }