Exemplo n.º 1
0
 private UpdateDefinition <AuctionRead> UpdateAuction(AuctionUpdateEventGroup eventGroup,
                                                      AuctionBuyNowPriceChanged ev)
 {
     return(Builders <AuctionRead> .Update.Set(read => read.BuyNowPrice, ev.BuyNowPrice.Value));
 }
Exemplo n.º 2
0
 private void ApplyEvent(AuctionBuyNowPriceChanged ev) => UpdateBuyNowPrice(ev.BuyNowPrice);