parent
5e118cf07c
commit
840f85df05
@ -0,0 +1,20 @@
|
||||
using Autofac;
|
||||
using Recyclarr.Migration.Steps;
|
||||
|
||||
namespace Recyclarr.Migration;
|
||||
|
||||
public class MigrationAutofacModule : Module
|
||||
{
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
base.Load(builder);
|
||||
builder.RegisterType<MigrationExecutor>().As<IMigrationExecutor>();
|
||||
|
||||
// Migration Steps
|
||||
builder.RegisterType<MigrateTrashYml>().As<IMigrationStep>();
|
||||
builder.RegisterType<MigrateTrashUpdaterAppDataDir>().As<IMigrationStep>();
|
||||
|
||||
// Automatically register all migration steps
|
||||
// builder.RegisterAssemblyTypes(typeof(MigrationAutofacModule).Assembly).AssignableTo<IMigrationStep>();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue