Exemple #1
0
        public Task <AuctionResponse> PlaceBidAsync(AuctionInfo auctionInfo, uint bidAmount = 0)
        {
            auctionInfo.ThrowIfNullArgument();

            if (bidAmount == 0)
            {
                bidAmount = auctionInfo.CalculateBid();
            }

            return(RequestFactories.PlaceBidRequestFactory(auctionInfo, bidAmount).PerformRequestAsync());
        }
Exemple #2
0
        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);
            }
        }