Added overload that takes IConfiguration

This commit is contained in:
David Fowler 2014-04-16 23:51:59 -07:00
parent 4fc0b56dfa
commit 44ee632825
1 changed files with 6 additions and 0 deletions

View File

@ -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));
}
}
}