Skip to content

DurableTask.RunInline(Action)

RunInline(Action)

static
View source
public static void RunInline(Action effect)
Runs effect in the caller's current work item before returning, and records its outcome; later runs of the task's body don't run it again.

Parameters

effectAction
The synchronous effect.

Exceptions

System.ArgumentNullException
effect is null.
System.InvalidOperationException
The host can't record the effect from the calling code, for example after ConfigureAwait(false).
Orleans.Durable.Tasks.DurableTaskAttemptCanceledException
The host canceled the attempt, for example with DurableTaskAttemptCancellationReason because an earlier run recorded another kind of operation, such as a step, under the effect's generated identifier.
System.NotSupportedException
The host doesn't support recorded effects.