diff options
Diffstat (limited to 'MediaBrowser.Common/Kernel/BaseKernel.cs')
| -rw-r--r-- | MediaBrowser.Common/Kernel/BaseKernel.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index a4fa91976..b409ba582 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -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();
}
@@ -216,26 +212,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>
public virtual void Dispose()
|
