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())); }
public async Task ResetBattleAsync(int battleId) { await _battleService.ResetBattleAsync(battleId); _cache = null; }