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

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

rawInfo 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?

Namespace

Gets the namespace.

public string Namespace { get; }

Property Value

string

ScheduledTime

Gets when the activity was originally scheduled.

public DateTime ScheduledTime { get; }

Property Value

DateTime

StateTransitionCount

Gets the number of state transitions.

public long StateTransitionCount { get; }

Property Value

long

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.