mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-27 00:02:25 +00:00
38 lines
No EOL
1,002 B
C#
38 lines
No EOL
1,002 B
C#
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, string[] assemblies)
|
|
: base(startupContext, assemblies)
|
|
{
|
|
|
|
}
|
|
|
|
public static IContainer Build(IStartupContext startupContext)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|