Table of Contents

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

rawListInfo ActivityExecutionListInfo

Raw proto list info.

clientNamespace string

Client namespace.

Remarks

WARNING: This constructor may be mutated in backwards incompatible ways.

Properties

ActivityId

Gets the activity ID.

public string ActivityId { get; }

Property Value

string

ActivityRunId

Gets the activity run ID.

public string? ActivityRunId { get; }

Property Value

string

ActivityType

Gets the activity type name.

public string ActivityType { get; }

Property Value

string

CloseTime

Gets when the activity was closed if in a terminal state.

public DateTime? CloseTime { get; }

Property Value

DateTime?

ExecutionDuration

Gets the total execution duration if the activity is closed.

public TimeSpan? ExecutionDuration { get; }

Property Value

TimeSpan?

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

DateTime?

Namespace

Gets the namespace.

public string Namespace { get; }

Property Value

string

RawListInfo

Gets the raw proto list info, or null if this was created from a describe call.

public ActivityExecutionListInfo? RawListInfo { get; }

Property Value

ActivityExecutionListInfo
See Also

ScheduleTime

Gets when the activity was originally scheduled.

public DateTime ScheduleTime { get; }

Property Value

DateTime

Status

Gets the status of the activity.

public ActivityExecutionStatus Status { get; }

Property Value

ActivityExecutionStatus

TaskQueue

Gets the task queue for the activity.

public string TaskQueue { get; }

Property Value

string

TypedSearchAttributes

Gets the search attributes on the activity.

public SearchAttributeCollection TypedSearchAttributes { get; }

Property Value

SearchAttributeCollection

Remarks

This is lazily converted on first access.