Class SchedulerService
Inheritance
System.Object
SchedulerService
Implements
System.IDisposable
System.Web.Hosting.IRegisteredObject
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
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ModuleDependency(typeof(CmsCoreInitialization))]
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, ServiceType = typeof(ISchedulerService))]
public class SchedulerService : ISchedulerService, IInitializableModule, IDisposable, IRegisteredObject
Constructors
SchedulerService()
Declaration
public SchedulerService()
SchedulerService(ScheduledJobRepository)
Declaration
public SchedulerService(ScheduledJobRepository repo)
Parameters
Type | Name | Description |
---|---|---|
ScheduledJobRepository | repo |
SchedulerService(WaitableTimer, Int32, ScheduledJobRepository)
Declaration
protected SchedulerService(WaitableTimer waitableTimer, int refreshInterval, ScheduledJobRepository repo)
Parameters
Type | Name | Description |
---|---|---|
WaitableTimer | waitableTimer | |
System.Int32 | refreshInterval | |
ScheduledJobRepository | repo |
Properties
CurrentScheduledItem
Current scheduler job
Declaration
protected virtual ScheduledItem CurrentScheduledItem { get; set; }
Property Value
Type | Description |
---|---|
ScheduledItem |
WaitOnException
Amount of time to wait if the scheduler can not execute the job
Declaration
protected virtual TimeSpan WaitOnException { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
ClearScheduledItem()
Clear the current job
Declaration
protected virtual void ClearScheduledItem()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Execute()
Execute the job
Declaration
protected virtual void Execute()
ExecuteJob()
Execute the job
Declaration
protected virtual void ExecuteJob()
Initialize(InitializationEngine)
Declaration
public void Initialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context |
LoadNextScheduledItem()
load the next job from DB
Declaration
protected virtual ScheduledItem LoadNextScheduledItem()
Returns
Type | Description |
---|---|
ScheduledItem | The next job |
Run()
Run the Jobs
Declaration
public virtual void Run()
Stop()
Stop the jobs
Declaration
public virtual void Stop()
Uninitialize(InitializationEngine)
Declaration
public void Uninitialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context |
Implements
System.IDisposable
System.Web.Hosting.IRegisteredObject