public Task PingPongInterleave(IPingGrain other, int count) { if (count == 0) { return(Task.CompletedTask); } return(other.PingPongInterleave(this.self, count - 1)); }
public async Task PingPongForever() { var other = this.client.GetGrain <IPingGrain>(Guid.NewGuid().GetHashCode()); while (true) { await grain.PingPongInterleave(other, 100); } }