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

@ -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)
};
}
}