Class SlotReleaseContext
- Namespace
- Temporalio.Worker.Tuning
- Assembly
- Temporalio.dll
Context for releasing a slot used from a CustomSlotSupplier.
public record SlotReleaseContext : IEquatable<SlotReleaseContext>
- Inheritance
-
SlotReleaseContext
- Implements
- Inherited Members
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Constructors
SlotReleaseContext(SlotInfo?, SlotPermit)
Context for releasing a slot used from a CustomSlotSupplier.
public SlotReleaseContext(SlotInfo? SlotInfo, SlotPermit Permit)
Parameters
SlotInfoSlotInfoInfo about the task that will be using the slot. May be null if the slot was never used.
PermitSlotPermitThe permit that was issued when the slot was reserved.
Remarks
WARNING: This constructor may have required properties added. Do not rely on the exact constructor, only use "with" clauses.
Properties
Permit
The permit that was issued when the slot was reserved.
public SlotPermit Permit { get; init; }
Property Value
SlotInfo
Info about the task that will be using the slot. May be null if the slot was never used.
public SlotInfo? SlotInfo { get; init; }