private static async Task CountDemo(ISimpleStatefulActor proxy) { Console.WriteLine("Enter a value for the Count as it is currently: {0}", await proxy.GetCountAsync()); var count = Convert.ToInt32(Console.ReadLine()); await proxy.SetCountAsync(count); await CountDemo(proxy); }