Reworked the plugin loader

This commit is contained in:
2025-04-10 19:13:41 +03:00
parent f19aafcec6
commit c548c6191d
28 changed files with 236 additions and 1715 deletions

View File

@@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.Loader;
namespace DiscordBotCore.PluginManagement.Loading;
public class PluginLoaderContext : AssemblyLoadContext
{
public PluginLoaderContext(string name) : base(name: name, isCollectible: true) {}
protected override Assembly? Load(AssemblyName assemblyName)
{
return base.Load(assemblyName);
}
}