Grain.OnDeactivateAsync Method
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.
OnDeactivateAsync() |
This method is called at the begining of the process of deactivating a grain. |
OnDeactivateAsync(DeactivationReason, CancellationToken) |
This method is called at the beginning of the process of deactivating a grain. |
- Source:
- Grain.cs
This method is called at the begining of the process of deactivating a grain.
public virtual System.Threading.Tasks.Task OnDeactivateAsync ();
abstract member OnDeactivateAsync : unit -> System.Threading.Tasks.Task
override this.OnDeactivateAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function OnDeactivateAsync () As Task
Returns
Applies to
This method is called at the beginning of the process of deactivating a grain.
public virtual System.Threading.Tasks.Task OnDeactivateAsync (Orleans.DeactivationReason reason, System.Threading.CancellationToken cancellationToken);
abstract member OnDeactivateAsync : Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnDeactivateAsync : Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnDeactivateAsync (reason As DeactivationReason, cancellationToken As CancellationToken) As Task
Parameters
- reason
- DeactivationReason
The reason for deactivation. Informational only.
- cancellationToken
- CancellationToken
A cancellation token which signals when deactivation should complete promptly.