1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-10 04:52:42 +01:00
Radarr/NzbDrone.Host/MainAppContainerBuilder.cs

31 lines
1.0 KiB
C#
Raw Normal View History

2013-09-11 08:33:47 +02:00
using Nancy.Bootstrapper;
2013-04-20 02:05:48 +02:00
using NzbDrone.Api;
2013-05-11 01:53:50 +02:00
using NzbDrone.Common.Composition;
using NzbDrone.Common.EnvironmentInfo;
2013-04-20 02:05:48 +02:00
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Organizer;
using NzbDrone.Core.RootFolders;
2013-09-11 08:33:47 +02:00
using NzbDrone.SignalR;
2013-04-20 02:05:48 +02:00
namespace NzbDrone.Host
2013-04-20 02:05:48 +02:00
{
public class MainAppContainerBuilder : ContainerBuilderBase
{
public static IContainer BuildContainer(StartupArguments args)
2013-04-20 02:05:48 +02:00
{
return new MainAppContainerBuilder(args).Container;
2013-04-20 02:05:48 +02:00
}
private MainAppContainerBuilder(StartupArguments args)
2013-09-11 08:33:47 +02:00
: base(args, "NzbDrone.Host", "NzbDrone.Common", "NzbDrone.Core", "NzbDrone.Api", "NzbDrone.SignalR")
2013-04-20 02:05:48 +02:00
{
2013-05-11 01:53:50 +02:00
AutoRegisterImplementations<NzbDronePersistentConnection>();
2013-04-20 02:05:48 +02:00
2013-05-11 01:53:50 +02:00
Container.Register(typeof(IBasicRepository<RootFolder>), typeof(BasicRepository<RootFolder>));
Container.Register(typeof(IBasicRepository<NamingConfig>), typeof(BasicRepository<NamingConfig>));
2013-04-20 02:05:48 +02:00
2013-05-11 01:53:50 +02:00
Container.Register<INancyBootstrapper, NancyBootstrapper>();
}
2013-04-20 02:05:48 +02:00
}
}