- The GetType lag situation is less crazy.
This commit is contained in:
@@ -130,16 +130,14 @@ public class PluginManagementService : IPluginManagementService, IAssemblyManage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: the lag situation here is craazy
|
foreach (var ass in AssemblyLoadContext.All.SelectMany(alc => alc.Assemblies))
|
||||||
var t = AssemblyLoadContext.All
|
{
|
||||||
.SelectMany(alc => alc.Assemblies)
|
if (ass.GetType(typeName, false) is not { } type)
|
||||||
.SelectMany(ass => ass.GetSafeTypes())
|
{
|
||||||
.FirstOrDefault(tp => tp.FullName?.Equals(typeName) ?? tp.Name.Equals(typeName), null);
|
continue;
|
||||||
|
}
|
||||||
return t;
|
return isByRefType ? type.MakeByRefType() : type;
|
||||||
|
}
|
||||||
//TODO: implement ALC resolutions.
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public FluentResults.Result LoadAssemblyResources(ImmutableArray<IAssemblyResourceInfo> resource)
|
public FluentResults.Result LoadAssemblyResources(ImmutableArray<IAssemblyResourceInfo> resource)
|
||||||
|
|||||||
Reference in New Issue
Block a user