diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index b735a4fcc2..9295ce4fc5 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Mvc // This provider needs access to the per-request services, but might be used many times for a given // request. - yield return describe.Scoped, + yield return describe.Scoped, DefaultActionConstraintProvider>(); yield return describe.Transient(); @@ -124,27 +124,12 @@ namespace Microsoft.AspNet.Mvc yield return describe.Transient, DefaultApiDescriptionProvider>(); - yield return - describe.Describe( - typeof(INestedProviderManager<>), - typeof(NestedProviderManager<>), - implementationInstance: null, - lifecycle: LifecycleKind.Transient); + yield return describe.Transient(typeof(INestedProviderManager<>), typeof(NestedProviderManager<>)); - yield return - describe.Describe( - typeof(INestedProviderManagerAsync<>), - typeof(NestedProviderManagerAsync<>), - implementationInstance: null, - lifecycle: LifecycleKind.Transient); + yield return describe.Transient(typeof(INestedProviderManagerAsync<>), typeof(NestedProviderManagerAsync<>)); yield return describe.Transient(); - yield return - describe.Describe( - typeof(IHtmlHelper<>), - typeof(HtmlHelper<>), - implementationInstance: null, - lifecycle: LifecycleKind.Transient); + yield return describe.Transient(typeof(IHtmlHelper<>), typeof(HtmlHelper<>)); yield return describe.Transient(); }