Fix typo in a private method name (#20589)
`ApplicationPartManager` has a private method named `GetAsemblyClosure` containing a typo. It should be named `GetAssemblyClosure`.
This commit is contained in:
parent
f05b5c8576
commit
f9ee790d02
|
|
@ -83,15 +83,15 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationParts
|
||||||
var assembliesFromAttributes = entryAssembly.GetCustomAttributes<ApplicationPartAttribute>()
|
var assembliesFromAttributes = entryAssembly.GetCustomAttributes<ApplicationPartAttribute>()
|
||||||
.Select(name => Assembly.Load(name.AssemblyName))
|
.Select(name => Assembly.Load(name.AssemblyName))
|
||||||
.OrderBy(assembly => assembly.FullName, StringComparer.Ordinal)
|
.OrderBy(assembly => assembly.FullName, StringComparer.Ordinal)
|
||||||
.SelectMany(GetAsemblyClosure);
|
.SelectMany(GetAssemblyClosure);
|
||||||
|
|
||||||
// The SDK will not include the entry assembly as an application part. We'll explicitly list it
|
// The SDK will not include the entry assembly as an application part. We'll explicitly list it
|
||||||
// and have it appear before all other assemblies \ ApplicationParts.
|
// and have it appear before all other assemblies \ ApplicationParts.
|
||||||
return GetAsemblyClosure(entryAssembly)
|
return GetAssemblyClosure(entryAssembly)
|
||||||
.Concat(assembliesFromAttributes);
|
.Concat(assembliesFromAttributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IEnumerable<Assembly> GetAsemblyClosure(Assembly assembly)
|
private static IEnumerable<Assembly> GetAssemblyClosure(Assembly assembly)
|
||||||
{
|
{
|
||||||
yield return assembly;
|
yield return assembly;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue