using Autofac; using TrashLib.Sonarr.Api; using TrashLib.Sonarr.Config; using TrashLib.Sonarr.QualityDefinition; using TrashLib.Sonarr.ReleaseProfile; using TrashLib.Sonarr.ReleaseProfile.Guide; namespace TrashLib.Sonarr; public class SonarrAutofacModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType().As(); builder.RegisterType().As(); builder.RegisterType() .As() .SingleInstance(); // Release Profile Support builder.RegisterType().As(); builder.RegisterType().As(); builder.RegisterType() .As(); // Quality Definition Support builder.RegisterType().As(); builder.RegisterType().As(); } }