17 lines
612 B
C#
17 lines
612 B
C#
using Hcs.WebApp.Data.Hcs;
|
|
|
|
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
|
{
|
|
public abstract class ManagerBase(OperationExecutionState operationExecutionState, Campaign campaign) : IManager
|
|
{
|
|
protected readonly OperationExecutionState operationExecutionState = operationExecutionState;
|
|
protected readonly Campaign campaign = campaign;
|
|
|
|
public IManager.ManagerState State { get; protected set; } = IManager.ManagerState.Created;
|
|
|
|
public abstract Task StartAsync(IServiceScope scope);
|
|
|
|
public abstract Task CheckStateAsync(IServiceScope scope);
|
|
}
|
|
}
|