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:
Alexey Ananyev 2020-04-08 09:48:24 -07:00 committed by GitHub
parent f05b5c8576
commit f9ee790d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -83,15 +83,15 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationParts
var assembliesFromAttributes = entryAssembly.GetCustomAttributes<ApplicationPartAttribute>()
.Select(name => Assembly.Load(name.AssemblyName))
.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
// and have it appear before all other assemblies \ ApplicationParts.
return GetAsemblyClosure(entryAssembly)
return GetAssemblyClosure(entryAssembly)
.Concat(assembliesFromAttributes);
}
private static IEnumerable<Assembly> GetAsemblyClosure(Assembly assembly)
private static IEnumerable<Assembly> GetAssemblyClosure(Assembly assembly)
{
yield return assembly;