using Autofac; using Recyclarr.Cli.Pipelines.CustomFormat.Cache; using Recyclarr.Cli.Pipelines.CustomFormat.Models; using Recyclarr.Cli.Pipelines.CustomFormat.PipelinePhases; namespace Recyclarr.Cli.Pipelines.CustomFormat; public class CustomFormatAutofacModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType() .As() .AsSelf() .InstancePerLifetimeScope(); builder.RegisterType().As(); builder.RegisterType(); builder.RegisterTypes( typeof(CustomFormatConfigPhase), typeof(CustomFormatApiFetchPhase), typeof(CustomFormatTransactionPhase), typeof(CustomFormatPreviewPhase), typeof(CustomFormatApiPersistencePhase), typeof(CustomFormatLogPhase)) .AsImplementedInterfaces(); } }