IActorService.DeleteActorAsync(ActorId, CancellationToken) Method

Definition

Deletes an Actor from the Actor service.

public System.Threading.Tasks.Task DeleteActorAsync (Microsoft.ServiceFabric.Actors.ActorId actorId, System.Threading.CancellationToken cancellationToken);
abstract member DeleteActorAsync : Microsoft.ServiceFabric.Actors.ActorId * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteActorAsync (actorId As ActorId, cancellationToken As CancellationToken) As Task

Parameters

actorId
ActorId

ActorId of the actor to be deleted.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous operation of call to server.

Remarks

An active actor, will be deactivated and its state will also be deleted from state provider.

An in-active actor's state will be deleted from state provider.

If this method is called for a non-existent actor id in the system, it will be a no-op.

Applies to