TrySignalDurableTaskAsync(IAddressable, TaskId, DurableSignal<T>, T, CancellationToken)
staticextension
public static ValueTask<DurableSignalResult> TrySignalDurableTaskAsync<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, and returns how the task handled it. 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
DurableSignalResult or DurableSignalResult once the task durably holds the value, or the reason the task rejected it, which changes nothing. Exceptions
System.ArgumentNullExceptiontargetorsignalisnull.System.ArgumentExceptiontaskIdis empty.System.InvalidOperationException- The caller is a durable execution.
