I’m new to Hangfire and am trying to figure out a way to allow the user to customize the time to trigger a job. I have a Jquery method to receive input from the user and getting the value. I’m using MVC so the controller is using the basic recurring jobs every minute.
[HttpPost]
public string GetUrlSource(string url)
{
JobStorage.Current = new SqlServerStorage(“Data Source=.\SQLEXPRESS;Initial Catalog=HealthStatus;Integrated Security=True;Pooling=False”);
RecurringJob.AddOrUpdate(()
=> GetUrlSource(url), Cron.Minutely);
RecurringJob.Trigger("1");
Any help would be appreciated.