Add new campaign template

This commit is contained in:
2025-11-14 17:13:00 +09:00
parent 506e44f570
commit 1b1fa4bbaa
5 changed files with 26 additions and 26 deletions

View File

@ -0,0 +1,18 @@
using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
public class ExportHousesDataManager_15_7_0_1(
IServiceScopeFactory scopeFactory,
OperationExecutionState operationExecutionState,
ResultWaitState resultWaitState,
Campaign campaign) : ManagerBase(scopeFactory, operationExecutionState, resultWaitState, campaign)
{
protected override int StepCount => throw new NotImplementedException();
public override Task ProcessAsync()
{
throw new NotImplementedException();
}
}
}

View File

@ -8,14 +8,13 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
protected readonly OperationExecutionState operationExecutionState = operationExecutionState;
protected readonly ResultWaitState resultWaitState = resultWaitState;
public IManager? CreateManager(Campaign campaign)
public IManager CreateManager(Campaign campaign)
{
return campaign.Type switch
{
Campaign.CampaignType.ExportPrivateRegistryElements_15_7_0_1 => new ExportPrivateRegistryElementsManager_15_7_0_1(serviceScopeFactory, operationExecutionState, resultWaitState, campaign),
Campaign.CampaignType.ExportCommonRegistryElements_15_7_0_1 => new ExportCommonRegistryElementsManager_15_7_0_1(serviceScopeFactory, operationExecutionState, resultWaitState, campaign),
_ => null,
Campaign.CampaignType.ExportHousesData_15_7_0_1 => new ExportHousesDataManager_15_7_0_1(serviceScopeFactory, operationExecutionState, resultWaitState, campaign)
};
}
}