From aa31c1bb911b225f5c534c0510b1fac098b829a3 Mon Sep 17 00:00:00 2001 From: Chris Klug Date: Fri, 20 Mar 2015 16:18:56 +0100 Subject: [PATCH] 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