Update campaign progress UI

This commit is contained in:
2025-11-05 16:00:52 +09:00
parent 20d2de5070
commit 785a1db668
5 changed files with 40 additions and 0 deletions

View File

@ -8,6 +8,7 @@ namespace Hcs.WebApp.BackgroundServices
private readonly ConcurrentQueue<Campaign> campaigns = new();
public event Action<Campaign> OnCampaignCreated;
public event Action<Campaign> OnCampaignProgressStep;
public event Action<Campaign> OnCampaignEnded;
public void EnqueueCampaign(Campaign campaign)
@ -30,5 +31,14 @@ namespace Hcs.WebApp.BackgroundServices
}
catch { }
}
public void InvokeOnCampaignProgressStep(Campaign campaign)
{
try
{
OnCampaignProgressStep?.Invoke(campaign);
}
catch { }
}
}
}