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

21 lines
428 B
C#

namespace Hcs.WebApp.BackgroundServices.CampaignManagers
{
public interface IManager
{
public enum ManagerState
{
Created,
Started,
Ended
}
public ManagerState State { get; }
Task StartAsync(IServiceScope scope);
Task CheckStateAsync(IServiceScope scope);
Task EndWithFailAsync(IServiceScope scope, Exception e);
}
}