From 44ee6328255a4fdef4093438e847137b46cb92dd Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 16 Apr 2014 23:51:59 -0700 Subject: [PATCH] Added overload that takes IConfiguration --- src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs index 6f91d32efe..a7539056b6 100644 --- a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs @@ -1,4 +1,5 @@  +using Microsoft.AspNet.ConfigurationModel; using Microsoft.AspNet.DependencyInjection; namespace Microsoft.AspNet.Mvc @@ -9,5 +10,10 @@ namespace Microsoft.AspNet.Mvc { return services.Add(MvcServices.GetDefaultServices()); } + + public static ServiceCollection AddMvc(this ServiceCollection services, IConfiguration configuration) + { + return services.Add(MvcServices.GetDefaultServices(configuration)); + } } }