mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
started to remove iisexpress.
This commit is contained in:
23
NzbDrone.Api/ContainerExtentions.cs
Normal file
23
NzbDrone.Api/ContainerExtentions.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Autofac;
|
||||
|
||||
namespace NzbDrone.Api
|
||||
{
|
||||
public static class ContainerExtensions
|
||||
{
|
||||
public static void RegisterApiServices(this ContainerBuilder containerBuilder)
|
||||
{
|
||||
var apiAssembly = Assembly.Load("NzbDrone.Api");
|
||||
|
||||
|
||||
containerBuilder.RegisterAssemblyTypes(apiAssembly)
|
||||
.AsImplementedInterfaces()
|
||||
.SingleInstance();
|
||||
|
||||
containerBuilder.RegisterAssemblyTypes(apiAssembly)
|
||||
.AsSelf()
|
||||
.SingleInstance();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user