ActorService.IActorService.DeleteActorAsync 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.
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
- 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.