Interface IScheduledJobRepository
Get, list, save and delete scheduled jobs
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IScheduledJobRepository
Methods
Delete(Guid)
Deletes a job by id
Declaration
void Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
Get(Guid)
Get a job by id
Declaration
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
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
IEnumerable<ScheduledJob> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ScheduledJob> |
Save(ScheduledJob)
Saves job information or creates a new job
Declaration
void Save(ScheduledJob job)
Parameters
Type | Name | Description |
---|---|---|
ScheduledJob | job |