1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-27 02:09:59 +00:00
Radarr/NzbDrone.Host/MainAppContainerBuilder.cs

32 lines
1.1 KiB
C#
Raw Normal View History

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