Skip to content

DurableTaskExtensions.Post(DurableTask<TResult>)

Post(DurableTask<TResult>)

staticextension
View source
public static ScheduledTask<TResult> Post<TResult>(this DurableTask<TResult> task)
Stages the start of the task in the caller's durable outbox, and returns its handle without waiting.

Parameters

taskDurableTask<TResult>

Returns

The task's handle, which the caller can await later.

Exceptions

System.InvalidOperationException
The caller has no durable outbox, for example because it's a client.