Skip to content

Commit aa31c1b

Browse files
committed
Changed the HelloMvc sample to use ConfigureServices() instead of app.UseServices()
1 parent be2f67f commit aa31c1b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/HelloMvc/Startup.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ namespace HelloMvc
66
{
77
public class Startup
88
{
9+
public void ConfigureServices(IServiceCollection services)
10+
{
11+
services.AddMvc();
12+
}
13+
914
public void Configure(IApplicationBuilder app)
1015
{
1116
app.UseErrorPage();
1217

13-
app.UseServices(services =>
14-
{
15-
services.AddMvc();
16-
});
17-
1818
app.UseMvc();
1919

2020
app.UseWelcomePage();
21-
}
21+
}
2222
}
2323
}

0 commit comments

Comments
 (0)