예제 #1
0
        public async Task <string> GetWinnerAsync()
        {
            ActorState state = await StateManager.GetStateAsync <ActorState>("GameState");

            return(state.Winner);
        }
예제 #2
0
        private async Task SetActorState(ActorState state)
        {
            await this.StateManager.AddOrUpdateStateAsync <ActorState>(STATE_KEY, state, (ke, v) => state);

            return;
        }
예제 #3
0
        public async Task <int[]> GetGameBoardAsync()
        {
            ActorState state = await StateManager.GetStateAsync <ActorState>("GameState");

            return(state.Board);
        }