Fix scope mishandling
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user