Fix scope mishandling

This commit is contained in:
2025-10-28 16:32:15 +09:00
parent 529bceb598
commit 1a097a8f7b
5 changed files with 14 additions and 14 deletions

View File

@ -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)
{