Class ScheduledJobRepository
Inheritance
System.Object
ScheduledJobRepository
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()
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[Obsolete("Use IScheduledJobRepository/IScheduledJobStatusService/IScheduledJobEvents instead")]
public class ScheduledJobRepository : IScheduledJobRepository, IScheduledJobStatusService
Constructors
ScheduledJobRepository()
Declaration
public ScheduledJobRepository()
Methods
Delete(Guid)
Declaration
public virtual void Delete(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Get(Guid)
Declaration
public virtual ScheduledJob Get(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Get(String, String, String)
Declaration
public virtual ScheduledJob Get(string method, string typeName, string assemblyName)
Parameters
Type |
Name |
Description |
System.String |
method |
|
System.String |
typeName |
|
System.String |
assemblyName |
|
Returns
GetExecutionLog(Guid)
Declaration
public virtual IEnumerable<ScheduledJobLogItem> GetExecutionLog(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
GetNextScheduledJob()
Declaration
public virtual ScheduledJob GetNextScheduledJob()
Returns
List()
Declaration
public virtual IEnumerable<ScheduledJob> List()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ScheduledJob> |
|
LoadLog(Guid)
Declaration
public virtual DataTable LoadLog(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Data.DataTable |
|
MarkAsFailed(Guid)
Declaration
public virtual void MarkAsFailed(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
MarkForExecution(Guid, DateTime, TimeSpan)
Declaration
[Obsolete("Renamed to TryMarkForExecution")]
public virtual bool MarkForExecution(Guid id, DateTime validateUtcDate, TimeSpan pingTime)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.DateTime |
validateUtcDate |
|
System.TimeSpan |
pingTime |
|
Returns
Type |
Description |
System.Boolean |
|
ReportExecutedJob(Guid, ScheduledJobLogItem)
Declaration
public virtual void ReportExecutedJob(Guid id, ScheduledJobLogItem status)
Parameters
ReportExecutedJob(Guid, Boolean, String)
Declaration
public virtual void ReportExecutedJob(Guid id, bool success, string message)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Boolean |
success |
|
System.String |
message |
|
Save(ScheduledJob)
Declaration
public virtual void Save(ScheduledJob job)
Parameters
TryMarkForExecution(Guid, DateTime, TimeSpan)
Declaration
public virtual bool TryMarkForExecution(Guid id, DateTime validateUtcDate, TimeSpan pingTime)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.DateTime |
validateUtcDate |
|
System.TimeSpan |
pingTime |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateCurrentStatusMessage(Guid, String)
Declaration
public virtual void UpdateCurrentStatusMessage(Guid id, string message)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.String |
message |
|
UpdateRunningState(Guid, Boolean)
Declaration
public virtual void UpdateRunningState(Guid id, bool isRunning)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Boolean |
isRunning |
|
Events
ScheduledJobDeleted
Declaration
[Obsolete("Use IScheduledJobEvents instead", true)]
public static event EventHandler<EventArgs> ScheduledJobDeleted
Event Type
Type |
Description |
System.EventHandler<System.EventArgs> |
|
ScheduledJobSaved
Declaration
[Obsolete("Use IScheduledJobEvents instead", true)]
public static event EventHandler<EventArgs> ScheduledJobSaved
Event Type
Type |
Description |
System.EventHandler<System.EventArgs> |
|
Implements
Extension Methods