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

@ -2,16 +2,15 @@
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
public abstract class ManagerBase(IServiceScope scope, OperationExecutionState operationExecutionState, Campaign campaign) : IManager
public abstract class ManagerBase(OperationExecutionState operationExecutionState, Campaign campaign) : IManager
{
protected readonly IServiceScope scope = scope;
protected readonly OperationExecutionState operationExecutionState = operationExecutionState;
protected readonly Campaign campaign = campaign;
public IManager.ManagerState State { get; protected set; } = IManager.ManagerState.Created;
public abstract Task StartAsync();
public abstract Task StartAsync(IServiceScope scope);
public abstract Task CheckStateAsync();
public abstract Task CheckStateAsync(IServiceScope scope);
}
}