Пример #1
0
 /// <summary>
 /// Subscribes the user to the auction.
 /// </summary>
 /// <param name="auctioneer">The auction's auctioneer.</param>
 public void Subscribe(Auctioneer auctioneer)
 {
     Registration = auctioneer.Subscribe(this);
 }
Пример #2
0
 /// <summary>
 /// Sets the new bid. Notifies the auctioneer.
 /// </summary>
 /// <param name="bid">Bidders bid</param>
 /// <param name="auctioneer">Auctioneer to notify</param>
 public void GiveNewBid(double bid, Auctioneer auctioneer)
 {
     Bid = bid;
     NotifyAuctioneer(auctioneer);
 }
Пример #3
0
 /// <summary>
 /// Notifies the auctioneer to validate new bid.
 /// </summary>
 /// <param name="auctioneer">Auctioneer to notify</param>
 public void NotifyAuctioneer(Auctioneer auctioneer)
 {
     auctioneer.ValidateBid(this);
 }
Пример #4
0
 /// <summary>
 /// Subscribe to an auctioneer's auction
 /// </summary>
 /// <param name="auctioneer">The auctioneer to subscribe to</param>
 public virtual void Subscribe(Auctioneer auctioneer)
 {
     unsubscriber = auctioneer.Subscribe(this);
     auctioneer.CatchUp(this);
 }