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. |
id |
Get(Guid)
Get a job by id
Declaration
ScheduledJob Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id of the job |
Returns
Type | Description |
---|---|
Scheduled |
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. |
method | The method to call. |
System. |
typeName | Name of the class where method lives. |
System. |
assemblyName | Name of the assembly where the class is defined. |
Returns
Type | Description |
---|---|
Scheduled |
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. |
Save(ScheduledJob)
Saves job information or creates a new job
Declaration
void Save(ScheduledJob job)
Parameters
Type | Name | Description |
---|---|---|
Scheduled |
job |