Update campaign handling
This commit is contained in:
@ -2,6 +2,16 @@
|
||||
{
|
||||
public interface IManager
|
||||
{
|
||||
public enum ManagerState
|
||||
{
|
||||
Created,
|
||||
Started,
|
||||
Working,
|
||||
Ended
|
||||
}
|
||||
|
||||
public ManagerState State { get; }
|
||||
|
||||
Task StartAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,6 +8,8 @@ namespace Hcs.WebApp.BackgroundServices.CampaignManagers
|
||||
protected readonly IServiceScopeFactory scopeFactory = scopeFactory;
|
||||
protected readonly Campaign campaign = campaign;
|
||||
|
||||
public IManager.ManagerState State { get; } = IManager.ManagerState.Created;
|
||||
|
||||
public abstract Task StartAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user