Skip to content

InProcessTestCluster.DeactivateAsync(GrainId)

DeactivateAsync(GrainId)

View source
public Task DeactivateAsync(GrainId grainId)
Deactivates the current activation of the specified grain and waits for deactivation to complete.

Parameters

grainIdGrainId
The ID of the grain to deactivate.

Returns

A task that completes when the grain has been deactivated.

Examples

await cluster.DeactivateAsync(grain.GetGrainId());