Share via


ActorService.IActorService.DeleteActorAsync Method

Definition

Deletes an Actor from the Actor service.

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

Parameters

actorId
ActorId

The 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.

Implements

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