Class DefaultScheduledJobExecutor
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inheritance
System.Object
DefaultScheduledJobExecutor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Scheduler.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IScheduledJobExecutor), Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultScheduledJobExecutor : IScheduledJobExecutor, IDisposable
Constructors
DefaultScheduledJobExecutor(SchedulerDB, IScheduledJobRepository, IScheduledJobLogRepository, IScheduledJobFactory, IEventRegistry, IScheduledJobEventsRaiser, FailedScheduledJobRegistry, SchedulerOptions)
Declaration
public DefaultScheduledJobExecutor(SchedulerDB dataAccess, IScheduledJobRepository repository, IScheduledJobLogRepository logRepository, IScheduledJobFactory jobFactory, IEventRegistry eventRegistry, IScheduledJobEventsRaiser scheduledJobEvents, FailedScheduledJobRegistry failedJobRegistry, SchedulerOptions schedulerOptions)
Parameters
Type | Name | Description |
---|---|---|
SchedulerDB | dataAccess | |
IScheduledJobRepository | repository | |
IScheduledJobLogRepository | logRepository | |
IScheduledJobFactory | jobFactory | |
IEventRegistry | eventRegistry | |
IScheduledJobEventsRaiser | scheduledJobEvents | |
FailedScheduledJobRegistry | failedJobRegistry | |
SchedulerOptions | schedulerOptions |
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