public override async void Execute(object?parameter) { if (_playerView.Wager == null) { return; } _hasWagered = true; _playerView.IsQuestionVisible = !_playerView.IsFinalJeopardy; await _server.SubmitWager(_playerView.Settings.Guid, (int)Math.Min(_playerView.Wager.Value, _playerView.MaximumWager)); NotifyExecutabilityChanged(); }
public async Task <bool> SubmitWager(Guid settingsGuid, int playerViewWager) { _logger.Trace(); return(await(_messageHubImplementation?.SubmitWager(settingsGuid, playerViewWager) ?? Task.FromResult(false))); }