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.
28 lines
862 B
28 lines
862 B
using Autofac;
|
|
using Autofac.Extras.AggregateService;
|
|
using Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
using Recyclarr.ServarrApi.Services;
|
|
|
|
namespace Recyclarr.Cli.Pipelines.Tags;
|
|
|
|
public class TagsAutofacModule : Module
|
|
{
|
|
protected override void Load(ContainerBuilder builder)
|
|
{
|
|
base.Load(builder);
|
|
|
|
builder.RegisterType<ServiceTagCache>().As<IPipelineCache>()
|
|
.AsSelf()
|
|
.InstancePerLifetimeScope();
|
|
|
|
builder.RegisterType<SonarrTagApiService>().As<ISonarrTagApiService>();
|
|
|
|
builder.RegisterAggregateService<ITagPipelinePhases>();
|
|
builder.RegisterType<TagConfigPhase>();
|
|
builder.RegisterType<TagPreviewPhase>();
|
|
builder.RegisterType<TagApiFetchPhase>();
|
|
builder.RegisterType<TagTransactionPhase>();
|
|
builder.RegisterType<TagApiPersistencePhase>();
|
|
}
|
|
}
|