fixing stylecop in .Mvc and .Mvc.Common
This commit is contained in:
parent
dd3dafddb8
commit
1b7d52c84c
|
|
@ -47,7 +47,9 @@ namespace Microsoft.AspNet.Mvc
|
||||||
public static Type ExtractGenericInterface([NotNull] this Type queryType, Type interfaceType)
|
public static Type ExtractGenericInterface([NotNull] this Type queryType, Type interfaceType)
|
||||||
{
|
{
|
||||||
Func<Type, bool> matchesInterface = t => t.IsGenericType() && t.GetGenericTypeDefinition() == interfaceType;
|
Func<Type, bool> matchesInterface = t => t.IsGenericType() && t.GetGenericTypeDefinition() == interfaceType;
|
||||||
return (matchesInterface(queryType)) ? queryType : queryType.GetInterfaces().FirstOrDefault(matchesInterface);
|
return (matchesInterface(queryType)) ?
|
||||||
|
queryType :
|
||||||
|
queryType.GetInterfaces().FirstOrDefault(matchesInterface);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NETFX_CORE || K10
|
#if NETFX_CORE || K10
|
||||||
|
|
|
||||||
|
|
@ -75,14 +75,16 @@ namespace Microsoft.AspNet.Mvc
|
||||||
|
|
||||||
yield return describe.Transient<IViewComponentSelector, DefaultViewComponentSelector>();
|
yield return describe.Transient<IViewComponentSelector, DefaultViewComponentSelector>();
|
||||||
yield return describe.Transient<IViewComponentInvokerFactory, DefaultViewComponentInvokerFactory>();
|
yield return describe.Transient<IViewComponentInvokerFactory, DefaultViewComponentInvokerFactory>();
|
||||||
yield return describe.Transient<INestedProvider<ViewComponentInvokerProviderContext>, DefaultViewComponentInvokerProvider>();
|
yield return describe.Transient<INestedProvider<ViewComponentInvokerProviderContext>,
|
||||||
|
DefaultViewComponentInvokerProvider>();
|
||||||
yield return describe.Transient<IViewComponentResultHelper, DefaultViewComponentResultHelper>();
|
yield return describe.Transient<IViewComponentResultHelper, DefaultViewComponentResultHelper>();
|
||||||
yield return describe.Transient<IViewComponentHelper, DefaultViewComponentHelper>();
|
yield return describe.Transient<IViewComponentHelper, DefaultViewComponentHelper>();
|
||||||
|
|
||||||
yield return describe.Transient<IAuthorizationService, DefaultAuthorizationService>();
|
yield return describe.Transient<IAuthorizationService, DefaultAuthorizationService>();
|
||||||
yield return describe.Singleton<IClaimUidExtractor, DefaultClaimUidExtractor>();
|
yield return describe.Singleton<IClaimUidExtractor, DefaultClaimUidExtractor>();
|
||||||
yield return describe.Singleton<AntiForgery, AntiForgery>();
|
yield return describe.Singleton<AntiForgery, AntiForgery>();
|
||||||
yield return describe.Singleton<IAntiForgeryAdditionalDataProvider, DefaultAntiForgeryAdditionalDataProvider>();
|
yield return describe.Singleton<IAntiForgeryAdditionalDataProvider,
|
||||||
|
DefaultAntiForgeryAdditionalDataProvider>();
|
||||||
|
|
||||||
yield return
|
yield return
|
||||||
describe.Describe(
|
describe.Describe(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue