DeactivateAsync(IAddressable)
public Task DeactivateAsync(IAddressable grain) Deactivates the current activation of the specified grain and waits for deactivation to complete.
Parameters
grainIAddressable- The grain to deactivate.
Returns
A task that completes when the grain has been deactivated.
Examples
await cluster.DeactivateAsync(grain.GetGrainId());