Class SlotReserveContext
- Namespace
- Temporalio.Worker.Tuning
- Assembly
- Temporalio.dll
Context for reserving a slot from a CustomSlotSupplier.
public record SlotReserveContext : IEquatable<SlotReserveContext>
- Inheritance
-
SlotReserveContext
- Implements
- Inherited Members
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Constructors
SlotReserveContext(SlotType, string, string, string, bool)
Context for reserving a slot from a CustomSlotSupplier.
public SlotReserveContext(SlotType SlotType, string TaskQueue, string WorkerIdentity, string WorkerBuildId, bool IsSticky)
Parameters
SlotTypeSlotTypeThe type of slot trying to be reserved.
TaskQueuestringThe name of the task queue for which this reservation request is associated.
WorkerIdentitystringThe identity of the worker that is requesting the reservation.
WorkerBuildIdstringThe build id of the worker that is requesting the reservation.
IsStickyboolTrue iff this is a reservation for a sticky poll for a workflow task.
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Properties
IsSticky
True iff this is a reservation for a sticky poll for a workflow task.
public bool IsSticky { get; init; }
Property Value
SlotType
The type of slot trying to be reserved.
public SlotType SlotType { get; init; }
Property Value
TaskQueue
The name of the task queue for which this reservation request is associated.
public string TaskQueue { get; init; }
Property Value
WorkerBuildId
The build id of the worker that is requesting the reservation.
public string WorkerBuildId { get; init; }
Property Value
WorkerIdentity
The identity of the worker that is requesting the reservation.
public string WorkerIdentity { get; init; }