Complete campaign flow
This commit is contained in:
@ -2,14 +2,16 @@
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
{
|
||||
public abstract class ManagerBase(IServiceScope scope, OperationExecutionState state, Campaign campaign) : IManager
|
||||
public abstract class ManagerBase(IServiceScope scope, OperationExecutionState operationExecutionState, Campaign campaign) : IManager
|
||||
{
|
||||
protected readonly IServiceScope scope = scope;
|
||||
protected readonly OperationExecutionState state = state;
|
||||
protected readonly OperationExecutionState operationExecutionState = operationExecutionState;
|
||||
protected readonly Campaign campaign = campaign;
|
||||
|
||||
public IManager.ManagerState State { get; } = IManager.ManagerState.Created;
|
||||
public IManager.ManagerState State { get; protected set; } = IManager.ManagerState.Created;
|
||||
|
||||
public abstract Task StartAsync(CancellationToken cancellationToken);
|
||||
public abstract Task StartAsync();
|
||||
|
||||
public abstract Task CheckStateAsync();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user