DurableSignal<T>
Namespace: Orleans.Durable.Tasks
T into a durable task, such as an external event or a human approval. public sealed class DurableSignal<T>Remarks
Senders and waiters share one descriptor, typically a static field: static readonly DurableSignal<Shipment> Shipped = new("shipped");. A signal addresses one task which a client or another grain invoked, and a wait anywhere in that task's execution observes the task's signals.
Each name latches one value per task: the host records the first value it receives, and every wait for that name returns the recorded value, including waits which begin before the signal arrives, waits which begin after it, and waits during replay. A repeated signal with an equal value leaves the task unchanged, and one with a different value is rejected. Use Orleans.Durable.Tasks.DurableSignal.For to derive a distinct name for each occurrence of a repeated event.
Constructors
DurableSignal<T>(string)Initializes a signal descriptor namedname.
Properties
NameGets the signal name.
Methods
For(string)Gets a descriptor for one occurrence of this signal, named{Name}/{suffix}.ToStringReturns a string that represents the current object.TryWaitAsync(DateTimeOffset)Creates a definition which waits for this signal untildeadline.WaitAsyncCreates a definition which waits for this signal and returns its value.
