Delen via


IDurableOrchestrationContext.CallActivityWithRetryAsync Method

Definition

Overloads

CallActivityWithRetryAsync(String, RetryOptions, Object)

Schedules an activity function named functionName for execution with retry options.

CallActivityWithRetryAsync<TResult>(String, RetryOptions, Object)

Schedules an activity function named functionName for execution with retry options.

CallActivityWithRetryAsync(String, RetryOptions, Object)

Source:
IDurableOrchestrationContext.cs

Schedules an activity function named functionName for execution with retry options.

public System.Threading.Tasks.Task CallActivityWithRetryAsync (string functionName, Microsoft.Azure.WebJobs.Extensions.DurableTask.RetryOptions retryOptions, object input);
abstract member CallActivityWithRetryAsync : string * Microsoft.Azure.WebJobs.Extensions.DurableTask.RetryOptions * obj -> System.Threading.Tasks.Task
Public Function CallActivityWithRetryAsync (functionName As String, retryOptions As RetryOptions, input As Object) As Task

Parameters

functionName
String

The name of the activity function to call.

retryOptions
RetryOptions

The retry option for the activity function.

input
Object

The JSON-serializeable input to pass to the activity function.

Returns

A durable task that completes when the called activity function completes or fails.

Exceptions

The retry option object is null.

The specified function does not exist, is disabled, or is not an orchestrator function.

The current thread is different than the thread which started the orchestrator execution.

The activity function failed with an unhandled exception.

Applies to

CallActivityWithRetryAsync<TResult>(String, RetryOptions, Object)

Source:
IDurableOrchestrationContext.cs

Schedules an activity function named functionName for execution with retry options.

public System.Threading.Tasks.Task<TResult> CallActivityWithRetryAsync<TResult> (string functionName, Microsoft.Azure.WebJobs.Extensions.DurableTask.RetryOptions retryOptions, object input);
abstract member CallActivityWithRetryAsync : string * Microsoft.Azure.WebJobs.Extensions.DurableTask.RetryOptions * obj -> System.Threading.Tasks.Task<'Result>
Public Function CallActivityWithRetryAsync(Of TResult) (functionName As String, retryOptions As RetryOptions, input As Object) As Task(Of TResult)

Type Parameters

TResult

The return type of the scheduled activity function.

Parameters

functionName
String

The name of the activity function to call.

retryOptions
RetryOptions

The retry option for the activity function.

input
Object

The JSON-serializeable input to pass to the activity function.

Returns

Task<TResult>

A durable task that completes when the called activity function completes or fails.

Exceptions

The retry option object is null.

The specified function does not exist, is disabled, or is not an orchestrator function.

The current thread is different than the thread which started the orchestrator execution.

The activity function failed with an unhandled exception.

Applies to