aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-02-11 00:22:32 -0500
committerGitHub <noreply@github.com>2019-02-11 00:22:32 -0500
commit8fd9f5b6a47ad7cce3d462a786cf6c4b215d22e1 (patch)
tree6d0fc9944593df94a16724b3176dc8d62bae6ea9 /Emby.Server.Implementations/ApplicationHost.cs
parent9849c183ac649db640c3ca5a646b88665918c3fa (diff)
parent2f4a00d322e355babfc73aa5d9e546491a02fad8 (diff)
Merge pull request #864 from joshuaboniface/zipped-plugins
Add support for ZIP plugin archives
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index bb475eb2c7..3538244064 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -564,7 +564,7 @@ namespace Emby.Server.Implementations
{
try
{
- var assembly = Assembly.Load(File.ReadAllBytes(file));
+ var assembly = Assembly.LoadFrom(file);
return new Tuple<Assembly, string>(assembly, file);
}
@@ -777,12 +777,12 @@ namespace Emby.Server.Implementations
SocketFactory = new SocketFactory();
RegisterSingleInstance(SocketFactory);
- InstallationManager = new InstallationManager(LoggerFactory, this, ApplicationPaths, HttpClient, JsonSerializer, ServerConfigurationManager, FileSystemManager, CryptographyProvider, PackageRuntime);
- RegisterSingleInstance(InstallationManager);
-
ZipClient = new ZipClient(FileSystemManager);
RegisterSingleInstance(ZipClient);
+ InstallationManager = new InstallationManager(LoggerFactory, this, ApplicationPaths, HttpClient, JsonSerializer, ServerConfigurationManager, FileSystemManager, CryptographyProvider, ZipClient, PackageRuntime);
+ RegisterSingleInstance(InstallationManager);
+
HttpResultFactory = new HttpResultFactory(LoggerFactory, FileSystemManager, JsonSerializer, CreateBrotliCompressor());
RegisterSingleInstance(HttpResultFactory);
@@ -1603,7 +1603,7 @@ namespace Emby.Server.Implementations
{
try
{
- return FilterAssembliesToLoad(Directory.EnumerateFiles(path, "*.dll", SearchOption.TopDirectoryOnly))
+ return FilterAssembliesToLoad(Directory.EnumerateFiles(path, "*.dll", SearchOption.AllDirectories))
.Select(LoadAssembly)
.Where(a => a != null)
.ToList();