ActorBase.OnDeactivateAsync Method

Definition

Override this method to release any resources. This method is called when actor is deactivated (garbage collected by Actor Runtime). Actor operations like state changes should not be called from this method.

protected virtual System.Threading.Tasks.Task OnDeactivateAsync ();
abstract member OnDeactivateAsync : unit -> System.Threading.Tasks.Task
override this.OnDeactivateAsync : unit -> System.Threading.Tasks.Task
Protected Overridable Function OnDeactivateAsync () As Task

Returns

A Task that represents outstanding OnDeactivateAsync operation.

Applies to