public Task <AuctionResponse> PlaceBidAsync(AuctionInfo auctionInfo, uint bidAmount = 0) { auctionInfo.ThrowIfNullArgument(); if (bidAmount == 0) { bidAmount = auctionInfo.CalculateBid(); } return(RequestFactories.PlaceBidRequestFactory(auctionInfo, bidAmount).PerformRequestAsync()); }
public async Task <AuctionResponse> PlaceBidAsync(AuctionInfo auctionInfo, uint bidAmount = 0) { auctionInfo.ThrowIfNullArgument(); if (bidAmount == 0) { bidAmount = auctionInfo.CalculateBid(); } try { return(await _requestFactories.PlaceBidRequestFactory(auctionInfo, bidAmount).PerformRequestAsync()); } catch (Exception e) { throw new FutException("Placing bid failed", e); } }