2018-04-21 04:59:31 +00:00
|
|
|
using System.Collections.Generic;
|
2014-01-06 06:20:08 +00:00
|
|
|
using NzbDrone.Common.Composition;
|
2013-08-16 03:32:23 +00:00
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
2016-04-24 14:20:45 +00:00
|
|
|
using NzbDrone.Common.Http.Dispatchers;
|
2013-04-20 00:05:48 +00:00
|
|
|
|
|
|
|
namespace NzbDrone.Update
|
|
|
|
{
|
|
|
|
public class UpdateContainerBuilder : ContainerBuilderBase
|
|
|
|
{
|
2018-04-21 04:59:31 +00:00
|
|
|
private UpdateContainerBuilder(IStartupContext startupContext, List<string> assemblies)
|
2014-01-06 06:20:08 +00:00
|
|
|
: base(startupContext, assemblies)
|
2013-04-20 00:05:48 +00:00
|
|
|
{
|
2019-09-03 02:22:25 +00:00
|
|
|
|
2013-04-20 00:05:48 +00:00
|
|
|
}
|
|
|
|
|
2013-11-26 06:53:36 +00:00
|
|
|
public static IContainer Build(IStartupContext startupContext)
|
2013-04-20 00:05:48 +00:00
|
|
|
{
|
2015-10-03 17:45:26 +00:00
|
|
|
var assemblies = new List<string>
|
2014-01-06 06:20:08 +00:00
|
|
|
{
|
2018-04-21 04:59:31 +00:00
|
|
|
"Radarr.Update"
|
2014-01-06 06:20:08 +00:00
|
|
|
};
|
|
|
|
|
2018-04-21 04:59:31 +00:00
|
|
|
return new UpdateContainerBuilder(startupContext, assemblies).Container;
|
2013-04-20 00:05:48 +00:00
|
|
|
}
|
|
|
|
}
|
2014-01-06 06:20:08 +00:00
|
|
|
}
|