Table of Contents

Class NexusOperationExecutionContext

Namespace
Temporalio.Nexus
Assembly
Temporalio.dll

Nexus operation context available in Temporal-powered Nexus operations via async local Current.

public class NexusOperationExecutionContext
Inheritance
NexusOperationExecutionContext
Inherited Members

Remarks

WARNING: Nexus support is experimental.

Properties

Current

Gets the current Nexus operation context.

public static NexusOperationExecutionContext Current { get; }

Property Value

NexusOperationExecutionContext

Exceptions

InvalidOperationException

If no context is available.

HasCurrent

Gets a value indicating whether there is a current Nexus operation context.

public static bool HasCurrent { get; }

Property Value

bool

Info

Gets the Temporal-specific info for this operation.

public NexusOperationInfo Info { get; }

Property Value

NexusOperationInfo

Logger

Gets the logger scoped to this operation.

public ILogger Logger { get; }

Property Value

ILogger

MetricMeter

Gets the metric meter for this operation with operation-specific tags. Note, this is lazily created for each operation execution.

public MetricMeter MetricMeter { get; }

Property Value

MetricMeter

TemporalClient

Gets the Temporal client for use within the operation.

public ITemporalClient TemporalClient { get; }

Property Value

ITemporalClient

Exceptions

InvalidOperationException

If the client the worker was created with is not an ITemporalClient.