public void PlaceBid(PlaceBidOnAuctionCommand command) { BidPlacedOnAuction @event = null; _listener.Subscribe(new ActionEventHandler <BidPlacedOnAuction>(a => @event = a)); //TODO: replace this transctional consistency with eventual consistency using NSB using (var scope = new TransactionScope()) { _bus.Dispatch(command); var bidHistoryCommand = CreateBidHistoryCommand(@event); _bus.Dispatch(bidHistoryCommand); scope.Complete(); } }
public void Put(PlaceBidOnAuctionCommand command) { this._facade.PlaceBid(command); }