Class SchedulerDB
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inheritance
System.Object
SchedulerDB
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: 10.10.4
Syntax
[ServiceConfiguration]
public class SchedulerDB
Constructors
SchedulerDB(ServiceAccessor<IAsyncDatabaseExecutor>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public SchedulerDB(ServiceAccessor<IAsyncDatabaseExecutor> databaseHandler)
Parameters
Fields
DefaultMaxLogItems
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default maximum number of log items per job to store in the database: 1000
Declaration
public const int DefaultMaxLogItems = 1000
Field Value
Type |
Description |
System.Int32 |
|
Properties
MaxLogItems
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get or sets the maximum number of log items per job to store in the database. Default is DefaultMaxLogItems.
Declaration
public static int MaxLogItems { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Add(String, Boolean, String, String, Byte[], DateTime, String, Int32, ref Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
[Obsolete("This method is supporting Workflow Tasks")]
public Guid Add(string methodName, bool fStatic, string typeName, string assemblyName, byte[] data, DateTime dtExec, string sRecurDatePart, int interval, ref bool fRefresh)
Parameters
Type |
Name |
Description |
System.String |
methodName |
|
System.Boolean |
fStatic |
|
System.String |
typeName |
|
System.String |
assemblyName |
|
System.Byte[] |
data |
|
System.DateTime |
dtExec |
|
System.String |
sRecurDatePart |
|
System.Int32 |
interval |
|
System.Boolean |
fRefresh |
|
Returns
Type |
Description |
System.Guid |
|
AddJobLogAsync(Guid, ScheduledJobLogItem)
Declaration
public virtual Task AddJobLogAsync(Guid id, ScheduledJobLogItem item)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GetJobLogAsync(Guid, Int64, Int32)
Declaration
public virtual Task<PagedScheduledJobLogResult> GetJobLogAsync(Guid id, long startIndex, int maxCount)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Int64 |
startIndex |
|
System.Int32 |
maxCount |
|
Returns
List()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual IEnumerable<ScheduledJob> List()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ScheduledJob> |
|
ListLog(Guid)
Declaration
public DataSet ListLog(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Data.DataSet |
|
Remove(Guid)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void Remove(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Save(ScheduledJob)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void Save(ScheduledJob job)
Parameters
TruncateJobLogAsync(Guid)
Declaration
public virtual Task TruncateJobLogAsync(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
UpdateCurrentStatusMessage(Guid, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Update the current status message on the job
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void UpdateCurrentStatusMessage(Guid id, string statusMessage)
Parameters
Type |
Name |
Description |
System.Guid |
id |
Id of the Job
|
System.String |
statusMessage |
Message
|
UpdateExecutionState(Guid, DateTime, Nullable<DateTime>, Int32, Int32, Int32)
Declaration
public virtual bool UpdateExecutionState(Guid id, DateTime currentExecutionDate, DateTime? updatedExecutionDate, int pingSeconds, int expectedExecutionAttempt, int nextExecutionAttempt)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.DateTime |
currentExecutionDate |
|
System.Nullable<System.DateTime> |
updatedExecutionDate |
|
System.Int32 |
pingSeconds |
|
System.Int32 |
expectedExecutionAttempt |
|
System.Int32 |
nextExecutionAttempt |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateRunningState(Guid, Boolean, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Update the running state for a specific job
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual void UpdateRunningState(Guid id, bool isRunning, bool resetLastExecutionAttempt)
Parameters
Type |
Name |
Description |
System.Guid |
id |
Job
|
System.Boolean |
isRunning |
State
|
System.Boolean |
resetLastExecutionAttempt |
Reset the LastExecutionAttempt
|
Extension Methods