Class TemporalRuntime
Runtime for the Temporal SDK.
Namespace: Temporalio.Runtime
Assembly: Temporalio.dll
Syntax
public sealed class TemporalRuntime : object
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.
Declaration
public TemporalRuntime(TemporalRuntimeOptions options)
Parameters
Type | Name | Description |
---|---|---|
TemporalRuntimeOptions | options | Options 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.
Declaration
public static TemporalRuntime Default { get; }
Property Value
Type | Description |
---|---|
TemporalRuntime |
Remarks
This is lazily created when first accessed. The default runtime is accessed when a runtime is not explicitly provided to a connection/client.