SignalDurableTaskAsync(IAddressable, TaskId, DurableSignal<T>, T, CancellationToken)
staticextension
public static ValueTask SignalDurableTaskAsync<T>(this IAddressable target, TaskId taskId, DurableSignal<T> signal, T value, CancellationToken cancellationToken = default(CancellationToken)) Delivers
signal with value to the invoked task taskId on target. Parameters
targetIAddressable- The grain which owns the task.
taskIdTaskId- The identifier of a task which a client or another grain invoked on
target. signalDurableSignal<T>- The signal descriptor which the task's waits share.
valueT- The signal's value.
cancellationTokenCancellationToken- A token which abandons the send.
Returns
An operation which completes once the send is durable.
Exceptions
System.ArgumentNullExceptiontargetorsignalisnull.System.ArgumentExceptiontaskIdis empty.Orleans.Durable.Tasks.DurableTaskNotFoundException- Outside a durable execution, the target retains no invoked task
taskId. System.InvalidOperationException- Outside a durable execution, the task holds a different value for the signal, or it is terminal and holds no value for the signal.
