ReliableCollectionsActorStateProvider.IActorStateProvider.LoadStateAsync<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.
Loads the actor state associated with the specified state name for the specified actor ID.
System.Threading.Tasks.Task<T> IActorStateProvider.LoadStateAsync<T> (Microsoft.ServiceFabric.Actors.ActorId actorId, string stateName, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider.LoadStateAsync : Microsoft.ServiceFabric.Actors.ActorId * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
override this.Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider.LoadStateAsync : Microsoft.ServiceFabric.Actors.ActorId * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Function LoadStateAsync(Of T) (actorId As ActorId, stateName As String, cancellationToken As CancellationToken) As Task(Of T) Implements IActorStateProvider.LoadStateAsync
Type Parameters
- T
Type of value of actor state associated with given state name.
Parameters
- actorId
- ActorId
ID of the actor for which to load the state.
- stateName
- String
Name of the actor state to load.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
Task<T>
A task that represents the asynchronous load operation. The value of TResult parameter contains value of actor state associated with given state name.
Implements
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET