Table of Contents

Namespace Temporalio.Common

Classes

DeterministicRandom

Implementation of Random that is deterministic and supports a 64-bit seed, unlike the standard implementation which is only 32-bit. Internally this uses a well-known/tested PCG-based algorithm (specifically, 128-bit MCG PCG-XSL-RR aka pcg64_fast), see https://www.pcg-random.org/. Changing of this internal algorithm in any way is considered a backwards incompatible alteration.

Metric

Base class for all metrics.

MetricCounter<T>

Metric for adding values as a counter.

MetricGauge<T>

Metric for setting values on a gauge.

MetricHistogram<T>

Metric for recording values on a histogram.

MetricMeter

Meter for creating metrics to record values on.

Metric<T>

Base class for all metrics.

Priority

Priority contains metadata that controls relative ordering of task processing when tasks are backlogged in a queue. Initially, Priority will be used in activity and workflow task queues, which are typically where backlogs exist. Priority is (for now) attached to workflows and activities. Activities and child workflows inherit Priority from the workflow that created them, but may override fields when they are started or modified. For each field of a Priority on an activity/workflow, not present or equal to zero/empty string means to inherit the value from the calling workflow, or if there is no calling workflow, then use the default (documented on the field).

The overall semantics of Priority are:

  1. First, consider "priority_key": lower number goes first. (more will be added here later).
RetryPolicy

Retry policy for workflows and activities.

SearchAttributeCollection

Read-only collection of typed search attributes. Use a SearchAttributeCollection.Builder to create this collection manually or UpsertTypedSearchAttributes(params SearchAttributeUpdate[]) to update from inside a workflow.

SearchAttributeCollection.Builder

Builder for creating SearchAttributeCollection. This builder is not thread safe.

SearchAttributeKey

A search attribute key and value type. Use one of the "Create" methods to create.

SearchAttributeKey<T>

Type safe search attribute key.

VersioningOverride

Represents the override of a worker’s versioning behavior for a workflow execution. Exactly one of the subtypes must be used.

VersioningOverride.AutoUpgrade

The workflow will auto-upgrade to the current deployment version on the next workflow task.

VersioningOverride.Pinned

Workflow will be pinned to a specific deployment version.

WorkerDeploymentVersion

Represents the version of a specific worker deployment.

WorkflowHistory

History for a workflow.

Enums

VersioningBehavior

Specifies when a workflow might move from a worker of one Build ID to another.

VersioningOverride.PinnedOverrideBehavior

Specifies different sub‐types of pinned override.