public async Task <bool> StopMatch(string connectionId) { if (_users[connectionId].UserState != UserState.Match) { return(false); } return(await _gwentMatchs.StopMatch(connectionId)); }
public async Task <bool> StopMatch(string connectionId) { if (_users[connectionId].UserState != UserState.Match && _users[connectionId].UserState != UserState.PasswordMatch) { return(false); } var result = await _gwentMatchs.StopMatch(connectionId); InovkeUserChanged(); return(result); }