public async Task <IActionResult> OnPostAddTaskAsync(string msg, int loop, double delay) { await _longTaskJobProvider.RegistJob(msg, loop, delay); return(RedirectToPage()); }
public async Task <string> Regist(string msg, int count, double delay) { return(await _longTaskApiProvider.RegistJob(msg, count, delay)); }