public async Task <string> GetWinnerAsync() { ActorState state = await StateManager.GetStateAsync <ActorState>("GameState"); return(state.Winner); }
private async Task SetActorState(ActorState state) { await this.StateManager.AddOrUpdateStateAsync <ActorState>(STATE_KEY, state, (ke, v) => state); return; }
public async Task <int[]> GetGameBoardAsync() { ActorState state = await StateManager.GetStateAsync <ActorState>("GameState"); return(state.Board); }