mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-01-01 10:32:09 +01:00
27 lines
828 B
C#
27 lines
828 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Common.Composition;
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
using NzbDrone.Common.Http.Dispatchers;
|
|
|
|
namespace NzbDrone.Update
|
|
{
|
|
public class UpdateContainerBuilder : ContainerBuilderBase
|
|
{
|
|
private UpdateContainerBuilder(IStartupContext startupContext, List<string> assemblies)
|
|
: base(startupContext, assemblies)
|
|
{
|
|
Container.Register<IHttpDispatcher, FallbackHttpDispatcher>();
|
|
}
|
|
|
|
public static IContainer Build(IStartupContext startupContext)
|
|
{
|
|
var assemblies = new List<string>
|
|
{
|
|
"Radarr.Update"
|
|
};
|
|
|
|
return new UpdateContainerBuilder(startupContext, assemblies).Container;
|
|
}
|
|
}
|
|
}
|