SaaS CMS has officially launched! Learn more now.

Class DefaultScheduledJobExecutor

Inheritance
System.Object
DefaultScheduledJobExecutor
Implements
System.IDisposable
Namespace: EPiServer.Scheduler.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class DefaultScheduledJobExecutor : Object, IScheduledJobExecutor, IDisposable

Constructors

DefaultScheduledJobExecutor(SchedulerDB, IScheduledJobRepository, IScheduledJobLogRepository, IScheduledJobFactory, IEventRegistry, IScheduledJobEventsRaiser, FailedScheduledJobRegistry, SchedulerOptions, IRootServiceScopeFactory)

Declaration
public DefaultScheduledJobExecutor(SchedulerDB dataAccess, IScheduledJobRepository repository, IScheduledJobLogRepository logRepository, IScheduledJobFactory jobFactory, IEventRegistry eventRegistry, IScheduledJobEventsRaiser scheduledJobEvents, FailedScheduledJobRegistry failedJobRegistry, SchedulerOptions schedulerOptions, IRootServiceScopeFactory serviceProviderScopeFactory)
Parameters
Type Name Description
SchedulerDB dataAccess
IScheduledJobRepository repository
IScheduledJobLogRepository logRepository
IScheduledJobFactory jobFactory
IEventRegistry eventRegistry
IScheduledJobEventsRaiser scheduledJobEvents
FailedScheduledJobRegistry failedJobRegistry
SchedulerOptions schedulerOptions
IRootServiceScopeFactory serviceProviderScopeFactory

Methods

AbortAllAsync()

Declaration
public virtual Task AbortAllAsync()
Returns
Type Description
System.Threading.Tasks.Task

Cancel(Guid)

Declaration
public virtual void Cancel(Guid id)
Parameters
Type Name Description
System.Guid id

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

ListRunningJobs()

Declaration
public virtual IEnumerable ListRunningJobs()
Returns
Type Description
System.Collections.IEnumerable

StartAsync(ScheduledJob, JobExecutionOptions, CancellationToken)

Declaration
public virtual Task<JobExecutionResult> StartAsync(ScheduledJob job, JobExecutionOptions options, CancellationToken cancellationToken)
Parameters
Type Name Description
ScheduledJob job
JobExecutionOptions options
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<JobExecutionResult>

Implements

System.IDisposable

Extension Methods