Fix scope mishandling
This commit is contained in:
@ -3,9 +3,9 @@ using Hcs.WebApp.Services;
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
{
|
||||
public class ExportCommonRegistryElementsManager_15_7_0_1(IServiceScope scope, OperationExecutionState operationExecutionState, Campaign campaign) : ManagerBase(scope, operationExecutionState, campaign)
|
||||
public class ExportCommonRegistryElementsManager_15_7_0_1(OperationExecutionState operationExecutionState, Campaign campaign) : ManagerBase(operationExecutionState, campaign)
|
||||
{
|
||||
public override async Task StartAsync()
|
||||
public override async Task StartAsync(IServiceScope scope)
|
||||
{
|
||||
if (campaign.Step > 0) return;
|
||||
|
||||
@ -41,7 +41,7 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
State = IManager.ManagerState.Started;
|
||||
}
|
||||
|
||||
public override async Task CheckStateAsync()
|
||||
public override async Task CheckStateAsync(IServiceScope scope)
|
||||
{
|
||||
if (State == IManager.ManagerState.Started)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user