示例#1
0
 public Task PingPongInterleave(IPingGrain other, int count)
 {
     if (count == 0)
     {
         return(Task.CompletedTask);
     }
     return(other.PingPongInterleave(this.self, count - 1));
 }
示例#2
0
        public async Task PingPongForever()
        {
            var other = this.client.GetGrain <IPingGrain>(Guid.NewGuid().GetHashCode());

            while (true)
            {
                await grain.PingPongInterleave(other, 100);
            }
        }