mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 10:48:46 +00:00
16 lines
436 B
C#
16 lines
436 B
C#
|
using System.Linq;
|
|||
|
using Autofac;
|
|||
|
using Nancy.Bootstrapper;
|
|||
|
using NzbDrone.Common;
|
|||
|
|
|||
|
namespace NzbDrone.Api
|
|||
|
{
|
|||
|
public static class ApiContainerExtensions
|
|||
|
{
|
|||
|
public static void RegisterApiServices(this ContainerBuilder containerBuilder)
|
|||
|
{
|
|||
|
containerBuilder.RegisterAssemblyTypes("NzbDrone.Api");
|
|||
|
containerBuilder.RegisterType<NancyBootstrapper>().As<INancyBootstrapper>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|