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.
30 lines
1.1 KiB
30 lines
1.1 KiB
1 year ago
|
using Autofac;
|
||
1 year ago
|
using Recyclarr.TrashGuide.CustomFormat;
|
||
|
using Recyclarr.TrashGuide.QualitySize;
|
||
|
using Recyclarr.TrashGuide.ReleaseProfile;
|
||
1 year ago
|
|
||
1 year ago
|
namespace Recyclarr.TrashGuide;
|
||
1 year ago
|
|
||
|
public class GuideAutofacModule : Module
|
||
|
{
|
||
|
protected override void Load(ContainerBuilder builder)
|
||
|
{
|
||
|
base.Load(builder);
|
||
|
|
||
|
builder.RegisterType<ConfigTemplateGuideService>().As<IConfigTemplateGuideService>().SingleInstance();
|
||
|
|
||
|
// Custom Format
|
||
|
builder.RegisterType<CustomFormatGuideService>().As<ICustomFormatGuideService>().SingleInstance();
|
||
|
builder.RegisterType<CustomFormatLoader>().As<ICustomFormatLoader>();
|
||
|
builder.RegisterType<CustomFormatCategoryParser>().As<ICustomFormatCategoryParser>();
|
||
|
|
||
|
// Release Profile
|
||
|
builder.RegisterType<ReleaseProfileGuideParser>();
|
||
|
builder.RegisterType<ReleaseProfileGuideService>().As<IReleaseProfileGuideService>().SingleInstance();
|
||
|
|
||
|
// Quality Size
|
||
|
builder.RegisterType<QualitySizeGuideService>().As<IQualitySizeGuideService>().SingleInstance();
|
||
|
builder.RegisterType<QualitySizeGuideParser>();
|
||
|
}
|
||
|
}
|