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
Remarks
WARNING: Standalone activities are experimental.
Constructors
ActivityExecution(ActivityExecutionListInfo, string)
Initializes a new instance of the ActivityExecution class from list info.
protected ActivityExecution(ActivityExecutionListInfo rawInfo, string clientNamespace)
Parameters
rawInfoActivityExecutionListInfoRaw 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
Namespace
Gets the namespace.
public string Namespace { get; }
Property Value
ScheduledTime
Gets when the activity was originally scheduled.
public DateTime ScheduledTime { get; }
Property Value
StateTransitionCount
Gets the number of state transitions.
public long StateTransitionCount { 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.