Changed the HelloMvc sample to use ConfigureServices() instead of app.UseServices()

This commit is contained in:
Chris Klug 2015-03-20 16:18:56 +01:00
parent be2f67f206
commit aa31c1bb91
1 changed files with 6 additions and 6 deletions

View File

@ -6,18 +6,18 @@ namespace HelloMvc
{ {
public class Startup public class Startup
{ {
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)
{ {
app.UseErrorPage(); app.UseErrorPage();
app.UseServices(services =>
{
services.AddMvc();
});
app.UseMvc(); app.UseMvc();
app.UseWelcomePage(); app.UseWelcomePage();
} }
} }
} }