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
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
Info
Gets the Temporal-specific info for this operation.
public NexusOperationInfo Info { get; }
Property Value
Logger
Gets the logger scoped to this operation.
public ILogger Logger { get; }
Property Value
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
TemporalClient
Gets the Temporal client for use within the operation.
public ITemporalClient TemporalClient { get; }
Property Value
Exceptions
- InvalidOperationException
If the client the worker was created with is not an
ITemporalClient
.