共用方式為


IDurableOrchestrationContext.CallActivityAsync Method

Definition

Overloads

CallActivityAsync(String, Object)

Schedules an activity function named functionName for execution.

CallActivityAsync<TResult>(String, Object)

Schedules an activity function named functionName for execution.

CallActivityAsync(String, Object)

Source:
IDurableOrchestrationContext.cs

Schedules an activity function named functionName for execution.

public System.Threading.Tasks.Task CallActivityAsync (string functionName, object input);
abstract member CallActivityAsync : string * obj -> System.Threading.Tasks.Task
Public Function CallActivityAsync (functionName As String, input As Object) As Task

Parameters

functionName
String

The name of the activity function to call.

input
Object

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

Returns

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

Exceptions

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

CallActivityAsync<TResult>(String, Object)

Source:
IDurableOrchestrationContext.cs

Schedules an activity function named functionName for execution.

public System.Threading.Tasks.Task<TResult> CallActivityAsync<TResult> (string functionName, object input);
abstract member CallActivityAsync : string * obj -> System.Threading.Tasks.Task<'Result>
Public Function CallActivityAsync(Of TResult) (functionName As String, 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.

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 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