Table of Contents

Class TaskExecution

Namespace
Dynamicweb.Scheduling
Assembly
Dynamicweb.Core.dll

Represents a task execution in the task scheduling.

public sealed class TaskExecution
Inheritance
TaskExecution
Inherited Members

Properties

Duration

Calculates the duration of the task execution.

public TimeSpan? Duration { get; }

Property Value

TimeSpan?

EndTime

The time when the task execution ended. This can be null if the task is still running.

public DateTime? EndTime { get; set; }

Property Value

DateTime?

Id

Unique identifier for the task execution.

public long Id { get; }

Property Value

long

Output

The output or result of the task execution. This can be null if the task does not produce output.

public string? Output { get; set; }

Property Value

string

Result

Indicates whether the task execution was successful or not.

public bool Result { get; set; }

Property Value

bool

ScheduleTime

The time when the task execution was scheduled to run.

public DateTime ScheduleTime { get; set; }

Property Value

DateTime

StartTime

The time when the task execution started.

public DateTime StartTime { get; set; }

Property Value

DateTime

TaskId

The identifier of the task that this execution belongs to.

public required int TaskId { get; init; }

Property Value

int

UserId

The identifier of the user who initiated the task execution.

public int? UserId { get; set; }

Property Value

int?
To top