|
|
@ -7,7 +7,7 @@ namespace NzbDrone.Update
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class UpdateContainerBuilder : ContainerBuilderBase
|
|
|
|
public class UpdateContainerBuilder : ContainerBuilderBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private UpdateContainerBuilder(IStartupContext startupContext, string[] assemblies)
|
|
|
|
private UpdateContainerBuilder(IStartupContext startupContext, List<string> assemblies)
|
|
|
|
: base(startupContext, assemblies)
|
|
|
|
: base(startupContext, assemblies)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Container.Register<IHttpDispatcher, FallbackHttpDispatcher>();
|
|
|
|
Container.Register<IHttpDispatcher, FallbackHttpDispatcher>();
|
|
|
@ -17,22 +17,10 @@ namespace NzbDrone.Update
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var assemblies = new List<string>
|
|
|
|
var assemblies = new List<string>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"NzbDrone.Update",
|
|
|
|
"NzbDrone.Update"
|
|
|
|
"NzbDrone.Common"
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsWindows)
|
|
|
|
return new UpdateContainerBuilder(startupContext, assemblies).Container;
|
|
|
|
{
|
|
|
|
|
|
|
|
assemblies.Add("NzbDrone.Windows");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
assemblies.Add("NzbDrone.Mono");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new UpdateContainerBuilder(startupContext, assemblies.ToArray()).Container;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|