IDurableEntityClient.ReadEntityStateAsync<T> 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.
Tries to read the current state of an entity. Returns default(T
) if the entity does not exist.
public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityStateResponse<T>> ReadEntityStateAsync<T> (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string taskHubName = default, string connectionName = default);
abstract member ReadEntityStateAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityStateResponse<'T>>
Public Function ReadEntityStateAsync(Of T) (entityId As EntityId, Optional taskHubName As String = Nothing, Optional connectionName As String = Nothing) As Task(Of EntityStateResponse(Of T))
Type Parameters
- T
The JSON-serializable type of the entity.
Parameters
- entityId
- EntityId
The target entity.
- taskHubName
- String
The TaskHubName of the target entity.
- connectionName
- String
The name of the connection string associated with taskHubName
.
Returns
a response containing the current state of the entity.