コード例 #1
0
        public async Task <IResponse> ResetAsync(int battleId)
        {
            //TODO:JJ Here we need to stop simulation
            //I didn't find any easy solution to stop job in reasonable time
            await _battleService.ResetBattleAsync(battleId);

            return(await Task.FromResult(new SuccessResponse()));
        }
コード例 #2
0
        public async Task ResetBattleAsync(int battleId)
        {
            await _battleService.ResetBattleAsync(battleId);

            _cache = null;
        }