Exemple #1
0
        public override async Task Run()
        {
            var scheduledTask = ScheduledTaskFactory.Create(
                _taskName,
                _configuration,
                OpenSqlConnectionAsync <SupportRequestDbConfiguration>,
                LoggerFactory);

            await scheduledTask.RunAsync();
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public override async Task Run()
        {
            var scheduledTask = ScheduledTaskFactory.Create(_jobArgsDictionary, LoggerFactory);

            await scheduledTask.RunAsync();
        }