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.
26 lines
796 B
26 lines
796 B
1 year ago
|
using Autofac;
|
||
8 months ago
|
using Recyclarr.Compatibility.Radarr;
|
||
|
using Recyclarr.Compatibility.Sonarr;
|
||
1 year ago
|
|
||
8 months ago
|
namespace Recyclarr.Compatibility;
|
||
1 year ago
|
|
||
|
public class CompatibilityAutofacModule : Module
|
||
|
{
|
||
|
protected override void Load(ContainerBuilder builder)
|
||
|
{
|
||
|
base.Load(builder);
|
||
|
|
||
11 months ago
|
builder.RegisterType<ServiceAgnosticCapabilityEnforcer>();
|
||
8 months ago
|
builder.RegisterType<ServiceInformation>().As<IServiceInformation>()
|
||
|
.InstancePerLifetimeScope();
|
||
11 months ago
|
|
||
1 year ago
|
// Sonarr
|
||
11 months ago
|
builder.RegisterType<SonarrCapabilityFetcher>().As<ISonarrCapabilityFetcher>();
|
||
1 year ago
|
builder.RegisterType<SonarrCapabilityEnforcer>();
|
||
|
|
||
|
// Radarr
|
||
11 months ago
|
builder.RegisterType<RadarrCapabilityFetcher>().As<IRadarrCapabilityFetcher>();
|
||
|
builder.RegisterType<RadarrCapabilityEnforcer>();
|
||
1 year ago
|
}
|
||
|
}
|