ActorBase.OnDeactivateAsync 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET