示例#1
0
        public async Task <IActionResult> OnPostAddTaskAsync(string msg, int loop, double delay)
        {
            await _longTaskJobProvider.RegistJob(msg, loop, delay);

            return(RedirectToPage());
        }
示例#2
0
 public async Task <string> Regist(string msg, int count, double delay)
 {
     return(await _longTaskApiProvider.RegistJob(msg, count, delay));
 }