Partilhar via


ReliableCollectionsActorStateProvider.IActorStateProvider.SaveStateAsync Método

Definição

Salva o conjunto especificado de alterações de estado do ator para a ID de ator especificada atomicamente.

System.Threading.Tasks.Task IActorStateProvider.SaveStateAsync (Microsoft.ServiceFabric.Actors.ActorId actorId, System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceFabric.Actors.Runtime.ActorStateChange> stateChanges, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider.SaveStateAsync : Microsoft.ServiceFabric.Actors.ActorId * System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceFabric.Actors.Runtime.ActorStateChange> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider.SaveStateAsync : Microsoft.ServiceFabric.Actors.ActorId * System.Collections.Generic.IReadOnlyCollection<Microsoft.ServiceFabric.Actors.Runtime.ActorStateChange> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Function SaveStateAsync (actorId As ActorId, stateChanges As IReadOnlyCollection(Of ActorStateChange), cancellationToken As CancellationToken) As Task Implements IActorStateProvider.SaveStateAsync

Parâmetros

actorId
ActorId

ID do ator para o qual salvar as alterações de estado.

stateChanges
IReadOnlyCollection<ActorStateChange>

Coleção de alterações de estado a serem salvas.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento.

Retornos

Uma tarefa que representa a operação de salvar assíncrona.

Implementações

Aplica-se a