You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/src/NzbDrone.Host/MainAppContainerBuilder.cs

38 lines
1.2 KiB

7 years ago
using System.Collections.Generic;
using Nancy.Bootstrapper;
8 years ago
using Sonarr.Http;
using NzbDrone.Common.Composition;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Http.Dispatchers;
11 years ago
using NzbDrone.SignalR;
namespace NzbDrone.Host
{
public class MainAppContainerBuilder : ContainerBuilderBase
{
public static IContainer BuildContainer(StartupContext args)
{
var assemblies = new List<string>
{
7 years ago
"Sonarr.Host",
"Sonarr.Core",
"Sonarr.Api",
"Sonarr.SignalR",
8 years ago
"Sonarr.Api.V3",
"Sonarr.Http"
};
return new MainAppContainerBuilder(args, assemblies).Container;
}
private MainAppContainerBuilder(StartupContext args, List<string> assemblies)
: base(args, assemblies)
{
AutoRegisterImplementations<NzbDronePersistentConnection>();
8 years ago
Container.Register<INancyBootstrapper, SonarrBootstrapper>();
Container.Register<IHttpDispatcher, FallbackHttpDispatcher>();
}
}
7 years ago
}