Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jobId = BackgroundJob.Enqueue(
- () => Console.WriteLine("Fire-and-forget!"));
- public IActionResult AddLogs(List<Log> logs)
- {
- BackgroundJob.Enqueue(() => DM.AddLogsBackground(logs));
- return Ok();
- }
- public async Task<IActionResult> AddLogs(List<Log> logs)
- {
- await DM.AddLogs(logs);
- return Ok();
- }
- public async Task AddLogs(List<Log> logs)
- {
- BackgroundJob.Enqueue(() => AddLogsBackground(logs));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement