Add campaign to get private registries

This commit is contained in:
2025-11-05 09:46:01 +09:00
parent 5a8b6c2303
commit 78bbacb30d
2 changed files with 135 additions and 5 deletions

View File

@ -10,13 +10,13 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
public IManager? CreateManager(Campaign campaign)
{
switch (campaign.Type)
return campaign.Type switch
{
case Campaign.CampaignType.ExportCommonRegistryElements_15_7_0_1:
return new ExportCommonRegistryElementsManager_15_7_0_1(serviceScopeFactory, operationExecutionState, resultWaitState, campaign);
}
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),
return null;
_ => null,
};
}
}
}