Skip to content

Commit

Permalink
retorn startup.cs to default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fMATSINHE committed Jan 4, 2020
1 parent 5840862 commit 4d8ad24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Helloword_core/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IHello, Hello>();
//services.AddSingleton<IHello, Hello>();
}

// 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())
{
Expand All @@ -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");
});
}
}
Expand Down

0 comments on commit 4d8ad24

Please sign in to comment.