Added overload that takes IConfiguration
This commit is contained in:
parent
4fc0b56dfa
commit
44ee632825
|
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
using Microsoft.AspNet.ConfigurationModel;
|
||||||
using Microsoft.AspNet.DependencyInjection;
|
using Microsoft.AspNet.DependencyInjection;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Mvc
|
namespace Microsoft.AspNet.Mvc
|
||||||
|
|
@ -9,5 +10,10 @@ namespace Microsoft.AspNet.Mvc
|
||||||
{
|
{
|
||||||
return services.Add(MvcServices.GetDefaultServices());
|
return services.Add(MvcServices.GetDefaultServices());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ServiceCollection AddMvc(this ServiceCollection services, IConfiguration configuration)
|
||||||
|
{
|
||||||
|
return services.Add(MvcServices.GetDefaultServices(configuration));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue