TrySignalAsync(TaskId, DurableSignal<T>, T, CancellationToken)
abstract
public abstract ValueTask<DurableSignalResult> TrySignalAsync<T>(TaskId taskId, DurableSignal<T> signal, T value, CancellationToken cancellationToken = default(CancellationToken)) Delivers
signal with value to an invoked task of this grain, and returns how the task handled it. Parameters
taskIdTaskId- The identifier of a task which a client or another grain invoked on this grain.
signalDurableSignal<T>- The signal descriptor which the task's waits share.
valueT- The signal's value.
cancellationTokenCancellationToken- A token which abandons waiting for the signal to commit.
Returns
DurableSignalResult or DurableSignalResult once the task durably holds the value, or the reason the task rejected it, which changes nothing. 