IActorService.DeleteActorAsync(ActorId, CancellationToken) 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.
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
- 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
Azure SDK for .NET