How to check if job running for FluentScheduler .NET. I have the following code in the Startup.cs
class for initializing my job:
var registry = new Registry();
registry.Schedule<SendPushesJob>().ToRunNow().AndEvery(60).Seconds();
JobManager.Initialize(registry);
and the following code in my controller:
public IActionResult StopSender()
{
JobManager.Stop();
return RedirectToAction("Index");
}
public IActionResult StartSender()
{
JobManager.Start();
return RedirectToAction("Index");
}
I would like to show on the view is my job started or stopped. How I can do this? I can't see the suitable method.