mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
DiskProvider split to Windows and Mono projects
This commit is contained in:
@@ -1,19 +1,38 @@
|
||||
using NzbDrone.Common.Composition;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Common.Composition;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
||||
namespace NzbDrone.Update
|
||||
{
|
||||
public class UpdateContainerBuilder : ContainerBuilderBase
|
||||
{
|
||||
private UpdateContainerBuilder(IStartupContext startupContext)
|
||||
: base(startupContext, "NzbDrone.Update", "NzbDrone.Common")
|
||||
private UpdateContainerBuilder(IStartupContext startupContext, string[] assemblies)
|
||||
: base(startupContext, assemblies)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static IContainer Build(IStartupContext startupContext)
|
||||
{
|
||||
return new UpdateContainerBuilder(startupContext).Container;
|
||||
var assemblies = new List<String>
|
||||
{
|
||||
"NzbDrone.Update",
|
||||
"NzbDrone.Common"
|
||||
};
|
||||
|
||||
if (OsInfo.IsWindows)
|
||||
{
|
||||
assemblies.Add("NzbDrone.Windows");
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
assemblies.Add("NzbDrone.Mono");
|
||||
}
|
||||
|
||||
return new UpdateContainerBuilder(startupContext, assemblies.ToArray()).Container;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user