public override async Task Run() { var scheduledTask = ScheduledTaskFactory.Create( _taskName, _configuration, OpenSqlConnectionAsync <SupportRequestDbConfiguration>, LoggerFactory); await scheduledTask.RunAsync(); }
public override async Task <bool> Run() { try { var scheduledTask = ScheduledTaskFactory.Create(_jobArgsDictionary, _loggerFactory); await scheduledTask.RunAsync(); } catch (Exception exception) { _logger.LogCritical(LogEvents.JobRunFailed, exception, "Job run failed!"); return(false); } return(true); }
public override async Task Run() { var scheduledTask = ScheduledTaskFactory.Create(_jobArgsDictionary, LoggerFactory); await scheduledTask.RunAsync(); }