18 lines
651 B
C#
18 lines
651 B
C#
using Hcs.WebApp.Data.Hcs;
|
|
|
|
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
|
{
|
|
public abstract class ManagerBase(IServiceScope scope, 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 CheckStateAsync();
|
|
}
|
|
}
|