IGrainBase.OnDeactivateAsync(DeactivationReason, 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.
Method overridden by grain implementations to handle deactivation.
public virtual System.Threading.Tasks.Task OnDeactivateAsync (Orleans.DeactivationReason reason, System.Threading.CancellationToken token);
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, token As CancellationToken) As Task
Parameters
- reason
- DeactivationReason
The reason for deactivation.
- token
- CancellationToken
The cancellation token used to signify that deactivation should complete promptly.
Returns
A Task which represents the operation.