IDurableOrchestrationContext.CallActivityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CallActivityAsync(String, Object) |
Schedules an activity function named |
CallActivityAsync<TResult>(String, Object) |
Schedules an activity function named |
CallActivityAsync(String, Object)
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)
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
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
Azure SDK for .NET