mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-29 21:36:31 +01:00
Moved Movies into the main project
This commit is contained in:
parent
1fc7f8bd2d
commit
2884df296c
@@ -150,10 +150,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// </summary>
|
||||
protected virtual void OnComposablePartsLoaded()
|
||||
{
|
||||
// This event handler will allow any plugin to reference another
|
||||
AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
|
||||
StartPlugins();
|
||||
}
|
||||
|
||||
@@ -215,26 +211,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This snippet will allow any plugin to reference another
|
||||
/// </summary>
|
||||
Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
|
||||
{
|
||||
AssemblyName assemblyName = new AssemblyName(args.Name);
|
||||
|
||||
// Look for the .dll recursively within the plugins directory
|
||||
string dll = Directory.GetFiles(ApplicationPaths.PluginsPath, "*.dll", SearchOption.AllDirectories)
|
||||
.FirstOrDefault(f => Path.GetFileNameWithoutExtension(f) == assemblyName.Name);
|
||||
|
||||
// If we found a matching assembly, load it now
|
||||
if (!string.IsNullOrEmpty(dll))
|
||||
{
|
||||
return Assembly.Load(File.ReadAllBytes(dll));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes all resources currently in use.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user