Class DefaultScheduledJobRepository
Get, list, save and delete scheduled jobs
Inheritance
System.Object
    DefaultScheduledJobRepository
  Implements
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class DefaultScheduledJobRepository : Object, IScheduledJobRepositoryConstructors
DefaultScheduledJobRepository(SchedulerDB, IScheduledJobEventsRaiser)
Declaration
public DefaultScheduledJobRepository(SchedulerDB dataAccess, IScheduledJobEventsRaiser scheduledJobEvents)Parameters
| Type | Name | Description | 
|---|---|---|
| SchedulerDB | dataAccess | |
| IScheduledJobEventsRaiser | scheduledJobEvents | 
Methods
Delete(Guid)
Deletes a job by id
Declaration
public virtual void Delete(Guid id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | id | 
Get(Guid)
Get a job by id
Declaration
public virtual ScheduledJob Get(Guid id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | id | The id of the job | 
Returns
| Type | Description | 
|---|---|
| ScheduledJob | The job, or null if not found | 
Get(String, String, String)
Get a job by method, type name and assembly
Declaration
public virtual ScheduledJob Get(string method, string typeName, string assemblyName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | method | The method to call. | 
| System.String | typeName | Name of the class where method lives. | 
| System.String | assemblyName | Name of the assembly where the class is defined. | 
Returns
| Type | Description | 
|---|---|
| ScheduledJob | A ScheduledJob instance if a matching job is found, otherwise null. | 
List()
Retrieves a list of all available jobs
Declaration
public virtual IEnumerable<ScheduledJob> List()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<ScheduledJob> | 
LoadLog(Guid)
Loads log information for the ScheduledJob.
Declaration
public virtual DataTable LoadLog(Guid id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | id | 
Returns
| Type | Description | 
|---|---|
| System.Data.DataTable | A System.Data.DataTable containing log data where each row represents a log event. | 
Save(ScheduledJob)
Saves job information or creates a new job
Declaration
public virtual void Save(ScheduledJob job)Parameters
| Type | Name | Description | 
|---|---|---|
| ScheduledJob | job | 
