public string Get() { var jobFireForget = BackgroundJob.Enqueue(() => _notaFiscalService.GerarNotaFiscal()); var jobDelay = BackgroundJob.Schedule(() => _vendaService.VendasPagas(), TimeSpan.FromSeconds(40)); var jobContinuaco = BackgroundJob.ContinueWith(jobDelay, () => _notaFiscalService.Deletar()); RecurringJob.AddOrUpdate <IEmailService>(x => x.Send(), Cron.Daily(23, 39)); RecurringJob.AddOrUpdate <IEmailService>(x => x.Send(), Cron.MinuteInterval(1)); // RecurringJob.AddOrUpdate( () => _emailService.Send(), "5922**5"); return("Jobs criado com sucesso"); }