Class TemporalRuntime
- Namespace
- Temporalio.Runtime
- Assembly
- Temporalio.dll
Runtime for the Temporal SDK.
public sealed class TemporalRuntime
- Inheritance
-
TemporalRuntime
- Inherited Members
Remarks
This runtime carries the internal core engine and telemetry options for Temporal. All connections/clients created using it, and any workers created from them, will be associated with the runtime.
Constructors
TemporalRuntime(TemporalRuntimeOptions)
Initializes a new instance of the TemporalRuntime class.
public TemporalRuntime(TemporalRuntimeOptions options)
Parameters
options
TemporalRuntimeOptionsOptions for the new runtime.
Remarks
This creates an entirely new thread pool and runtime in the Core backend. Please use sparingly.
Properties
Default
Gets or creates the default runtime.
public static TemporalRuntime Default { get; }
Property Value
Remarks
This is lazily created when first accessed. The default runtime is accessed when a runtime is not explicitly provided to a connection/client.
MetricMeter
Gets the metric meter associated with this runtime.
public MetricMeter MetricMeter { get; }