Share via


IDurableOrchestrationContext.CallEntityAsync Method

Definition

Overloads

CallEntityAsync(EntityId, String)

Calls an operation on an entity and waits for it to complete.

CallEntityAsync(EntityId, String, Object)

Calls an operation on an entity, passing an argument, and waits for it to complete.

CallEntityAsync<TResult>(EntityId, String)

Calls an operation on an entity and returns the result asynchronously.

CallEntityAsync<TResult>(EntityId, String, Object)

Calls an operation on an entity, passing an argument, and returns the result asynchronously.

CallEntityAsync(EntityId, String)

Source:
IDurableOrchestrationContext.cs

Calls an operation on an entity and waits for it to complete.

public System.Threading.Tasks.Task CallEntityAsync (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string operationName);
abstract member CallEntityAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string -> System.Threading.Tasks.Task
Public Function CallEntityAsync (entityId As EntityId, operationName As String) As Task

Parameters

entityId
EntityId

The target entity.

operationName
String

The name of the operation.

Returns

A task representing the completion of the operation on the entity.

Applies to

CallEntityAsync(EntityId, String, Object)

Source:
IDurableOrchestrationContext.cs

Calls an operation on an entity, passing an argument, and waits for it to complete.

public System.Threading.Tasks.Task CallEntityAsync (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string operationName, object operationInput);
abstract member CallEntityAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string * obj -> System.Threading.Tasks.Task
Public Function CallEntityAsync (entityId As EntityId, operationName As String, operationInput As Object) As Task

Parameters

entityId
EntityId

The target entity.

operationName
String

The name of the operation.

operationInput
Object

The input for the operation.

Returns

A task representing the completion of the operation on the entity.

Exceptions

if the context already holds some locks, but not the one for entityId.

Applies to

CallEntityAsync<TResult>(EntityId, String)

Source:
IDurableOrchestrationContext.cs

Calls an operation on an entity and returns the result asynchronously.

public System.Threading.Tasks.Task<TResult> CallEntityAsync<TResult> (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string operationName);
abstract member CallEntityAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string -> System.Threading.Tasks.Task<'Result>
Public Function CallEntityAsync(Of TResult) (entityId As EntityId, operationName As String) As Task(Of TResult)

Type Parameters

TResult

The JSON-serializable result type of the operation.

Parameters

entityId
EntityId

The target entity.

operationName
String

The name of the operation.

Returns

Task<TResult>

A task representing the result of the operation.

Applies to

CallEntityAsync<TResult>(EntityId, String, Object)

Source:
IDurableOrchestrationContext.cs

Calls an operation on an entity, passing an argument, and returns the result asynchronously.

public System.Threading.Tasks.Task<TResult> CallEntityAsync<TResult> (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string operationName, object operationInput);
abstract member CallEntityAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string * obj -> System.Threading.Tasks.Task<'Result>
Public Function CallEntityAsync(Of TResult) (entityId As EntityId, operationName As String, operationInput As Object) As Task(Of TResult)

Type Parameters

TResult

The JSON-serializable result type of the operation.

Parameters

entityId
EntityId

The target entity.

operationName
String

The name of the operation.

operationInput
Object

The input for the operation.

Returns

Task<TResult>

A task representing the result of the operation.

Exceptions

if the context already holds some locks, but not the one for entityId.

Applies to