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: Custom slot suppliers are currently experimental.
Constructors
SlotReleaseContext(SlotInfo?, SlotPermit)
Context for releasing a slot used from a CustomSlotSupplier.
public SlotReleaseContext(SlotInfo? SlotInfo, SlotPermit Permit)
Parameters
SlotInfo
SlotInfoInfo about the task that will be using the slot. May be null if the slot was never used.
Permit
SlotPermitThe permit that was issued when the slot was reserved.
Remarks
WARNING: Custom slot suppliers are currently experimental.
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; }