2022-07-03 22:34:07 +08:00
|
|
|
|
/*
|
|
|
|
|
|
MIT License
|
|
|
|
|
|
Copyright (c) 2019 Laurent Kempé
|
|
|
|
|
|
https://github.com/laurentkempe/DynamicRun/blob/master/LICENSE
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using System.Runtime.Loader;
|
|
|
|
|
|
|
2022-12-06 15:50:17 +08:00
|
|
|
|
namespace MinecraftClient.Scripting.DynamicRun.Builder
|
2022-07-03 22:34:07 +08:00
|
|
|
|
{
|
|
|
|
|
|
internal class SimpleUnloadableAssemblyLoadContext : AssemblyLoadContext
|
|
|
|
|
|
{
|
|
|
|
|
|
public SimpleUnloadableAssemblyLoadContext()
|
|
|
|
|
|
: base(true)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-10-02 18:31:08 +08:00
|
|
|
|
protected override Assembly? Load(AssemblyName assemblyName)
|
2022-07-03 22:34:07 +08:00
|
|
|
|
{
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|