Changed the HelloMvc sample to use ConfigureServices() instead of app.UseServices()
This commit is contained in:
parent
be2f67f206
commit
aa31c1bb91
|
|
@ -6,18 +6,18 @@ namespace HelloMvc
|
|||
{
|
||||
public class Startup
|
||||
{
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddMvc();
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
app.UseErrorPage();
|
||||
|
||||
app.UseServices(services =>
|
||||
{
|
||||
services.AddMvc();
|
||||
});
|
||||
|
||||
app.UseMvc();
|
||||
|
||||
app.UseWelcomePage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue