Files
hcs/Hcs.WebApp/BackgroundServices/CampaignManagers/ManagerBase.cs

16 lines
568 B
C#

using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
public abstract class ManagerBase(IServiceScope scope, OperationExecutionState state, Campaign campaign) : IManager
{
protected readonly IServiceScope scope = scope;
protected readonly OperationExecutionState state = state;
protected readonly Campaign campaign = campaign;
public IManager.ManagerState State { get; } = IManager.ManagerState.Created;
public abstract Task StartAsync(CancellationToken cancellationToken);
}
}