using System.Collections.Generic; using Nancy.Bootstrapper; using NzbDrone.Api; using NzbDrone.Common.Composition; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Http.Dispatchers; using NzbDrone.SignalR; namespace NzbDrone.Host { public class MainAppContainerBuilder : ContainerBuilderBase { public static IContainer BuildContainer(StartupContext args) { var assemblies = new List { "NzbDrone.Host", "NzbDrone.Core", "NzbDrone.Api", "NzbDrone.SignalR" }; return new MainAppContainerBuilder(args, assemblies).Container; } private MainAppContainerBuilder(StartupContext args, List assemblies) : base(args, assemblies) { AutoRegisterImplementations(); Container.Register(); Container.Register(); } } }