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.
recyclarr/src/Recyclarr.TrashLib/Services/Processors/ServiceProcessorsAutofacMod...

17 lines
601 B

using Autofac;
using Recyclarr.TrashLib.Config;
namespace Recyclarr.TrashLib.Services.Processors;
public class ServiceProcessorsAutofacModule : Module
{
protected override void Load(ContainerBuilder builder)
{
base.Load(builder);
builder.RegisterType<ServiceProcessorFactory>();
builder.RegisterType<RadarrProcessor>().Keyed<IServiceProcessor>(SupportedServices.Radarr);
builder.RegisterType<SonarrProcessor>().Keyed<IServiceProcessor>(SupportedServices.Sonarr);
builder.RegisterType<ConfigCreationProcessor>().As<IConfigCreationProcessor>();
}
}