21 lines
628 B
C#
21 lines
628 B
C#
using Hcs.WebApp.Data.Hcs;
|
|
|
|
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
|
{
|
|
public class ManagerFactory(OperationExecutionState state)
|
|
{
|
|
protected readonly OperationExecutionState state = state;
|
|
|
|
public IManager CreateManager(IServiceScope scope, Campaign campaign)
|
|
{
|
|
switch (campaign.Type)
|
|
{
|
|
case Campaign.CampaignType.ExportCommonRegistryElements_15_7_0_1:
|
|
return new ExportCommonRegistryElementsManager_15_7_0_1(scope, state, campaign);
|
|
}
|
|
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|