Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Bug #1915 - Remove AddMvc overload with default parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
sornaks committed Feb 2, 2015
1 parent 49294b7 commit cc998aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ namespace Microsoft.Framework.DependencyInjection
{
public static class MvcServiceCollectionExtensions
{
public static IServiceCollection AddMvc(this IServiceCollection services, IConfiguration configuration = null)
public static IServiceCollection AddMvc(this IServiceCollection services)
{
return AddMvc(services, null);
}

public static IServiceCollection AddMvc(this IServiceCollection services, IConfiguration configuration)
{
ConfigureDefaultServices(services, configuration);
services.TryAdd(MvcServices.GetDefaultServices(configuration));
Expand Down

0 comments on commit cc998aa

Please sign in to comment.