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
709 B
26 lines
709 B
using Autofac;
|
|
using Recyclarr.Cli.Pipelines.Tags.PipelinePhases;
|
|
|
|
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.RegisterTypes(
|
|
typeof(TagConfigPhase),
|
|
typeof(TagPreviewPhase),
|
|
typeof(TagApiFetchPhase),
|
|
typeof(TagTransactionPhase),
|
|
typeof(TagApiPersistencePhase),
|
|
typeof(TagLogPhase))
|
|
.AsImplementedInterfaces();
|
|
}
|
|
}
|