Add transaction support between services
This commit is contained in:
@ -2,17 +2,16 @@
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
{
|
||||
public class ManagerFactory(OperationExecutionState state, IServiceScopeFactory scopeFactory)
|
||||
public class ManagerFactory(OperationExecutionState state)
|
||||
{
|
||||
protected readonly OperationExecutionState state = state;
|
||||
protected readonly IServiceScopeFactory scopeFactory = scopeFactory;
|
||||
|
||||
public IManager CreateManager(Campaign campaign)
|
||||
public IManager CreateManager(IServiceScope scope, Campaign campaign)
|
||||
{
|
||||
switch (campaign.Type)
|
||||
{
|
||||
case Campaign.CampaignType.ExportRequiredRegistryElements_15_7_0_1:
|
||||
return new ExportRequiredRegistryElementsManager_15_7_0_1(state, scopeFactory, campaign);
|
||||
return new ExportRequiredRegistryElementsManager_15_7_0_1(scope, state, campaign);
|
||||
}
|
||||
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in New Issue
Block a user