Class ActivityExecution
- Namespace
- Temporalio.Client
- Assembly
- Temporalio.dll
Representation of a standalone activity execution from a list call.
public class ActivityExecution
- Inheritance
-
ActivityExecution
- Derived
- Inherited Members
Constructors
ActivityExecution(ActivityExecutionListInfo, string)
Initializes a new instance of the ActivityExecution class from list info.
protected ActivityExecution(ActivityExecutionListInfo rawListInfo, string clientNamespace)
Parameters
rawListInfoActivityExecutionListInfoRaw proto list info.
clientNamespacestringClient namespace.
Remarks
WARNING: This constructor may be mutated in backwards incompatible ways.
Properties
ActivityId
Gets the activity ID.
public string ActivityId { get; }
Property Value
ActivityRunId
Gets the activity run ID.
public string? ActivityRunId { get; }
Property Value
ActivityType
Gets the activity type name.
public string ActivityType { get; }
Property Value
CloseTime
Gets when the activity was closed if in a terminal state.
public DateTime? CloseTime { get; }
Property Value
ExecutionDuration
Gets the total execution duration if the activity is closed.
public TimeSpan? ExecutionDuration { get; }
Property Value
ExecutionTime
Gets the time at which the first activity task is made available for dispatch, computed as schedule time + start delay.
public DateTime? ExecutionTime { get; }
Property Value
Namespace
Gets the namespace.
public string Namespace { get; }
Property Value
RawListInfo
Gets the raw proto list info, or null if this was created from a describe call.
public ActivityExecutionListInfo? RawListInfo { get; }
Property Value
- See Also
ScheduleTime
Gets when the activity was originally scheduled.
public DateTime ScheduleTime { get; }
Property Value
Status
Gets the status of the activity.
public ActivityExecutionStatus Status { get; }
Property Value
TaskQueue
Gets the task queue for the activity.
public string TaskQueue { get; }
Property Value
TypedSearchAttributes
Gets the search attributes on the activity.
public SearchAttributeCollection TypedSearchAttributes { get; }
Property Value
Remarks
This is lazily converted on first access.