|
|
@ -123,14 +123,14 @@ namespace Emby.Server.Implementations.Plugins
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var assemblyLoadContext = new PluginLoadContext(plugin.Path);
|
|
|
|
|
|
|
|
_assemblyLoadContexts.Add(assemblyLoadContext);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var file in plugin.DllFiles)
|
|
|
|
foreach (var file in plugin.DllFiles)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Assembly assembly;
|
|
|
|
Assembly assembly;
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var assemblyLoadContext = new PluginLoadContext(file);
|
|
|
|
|
|
|
|
_assemblyLoadContexts.Add(assemblyLoadContext);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assembly = assemblyLoadContext.LoadFromAssemblyPath(file);
|
|
|
|
assembly = assemblyLoadContext.LoadFromAssemblyPath(file);
|
|
|
|
|
|
|
|
|
|
|
|
// Load all required types to verify that the plugin will load
|
|
|
|
// Load all required types to verify that the plugin will load
|
|
|
|