From aa31c1bb911b225f5c534c0510b1fac098b829a3 Mon Sep 17 00:00:00 2001 From: Chris Klug Date: Fri, 20 Mar 2015 16:18:56 +0100 Subject: [PATCH 1/2] Changed the HelloMvc sample to use ConfigureServices() instead of app.UseServices() --- samples/HelloMvc/Startup.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/HelloMvc/Startup.cs b/samples/HelloMvc/Startup.cs index 12be6b73e0..69f15ff27f 100644 --- a/samples/HelloMvc/Startup.cs +++ b/samples/HelloMvc/Startup.cs @@ -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(); - } + } } } \ No newline at end of file From d295af5d29ca9bc7d3a218f9dcf34cd95d57a738 Mon Sep 17 00:00:00 2001 From: Chris Klug Date: Fri, 20 Mar 2015 16:28:18 +0100 Subject: [PATCH 2/2] Fixed formatting issue --- samples/HelloMvc/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/HelloMvc/Startup.cs b/samples/HelloMvc/Startup.cs index 69f15ff27f..50e6a3a50d 100644 --- a/samples/HelloMvc/Startup.cs +++ b/samples/HelloMvc/Startup.cs @@ -6,7 +6,7 @@ namespace HelloMvc { public class Startup { - public void ConfigureServices(IServiceCollection services) + public void ConfigureServices(IServiceCollection services) { services.AddMvc(); } @@ -18,6 +18,6 @@ namespace HelloMvc app.UseMvc(); app.UseWelcomePage(); - } + } } } \ No newline at end of file