Ejemplo n.º 1
0
        public Person(IAggregateBus aggregateBus, Guid id)
            :base(aggregateBus, id)
        {
            // cleanest way to call publish
            PublishAndApplyEventAsync(new PersonCreated(Id)).ConfigureAwait(true);
//            EventBus.Instance.Publish(GetType(), Id, new PersonCreated(Id));
        }
Ejemplo n.º 2
0
        public Listing(IAggregateBus aggregateBus, Guid id, Location location, Description description, decimal price)
            : base(aggregateBus, id)
        {
            _location = location;
            _description = description;
            _price = price;
            _posted = false;

            PublishAndApplyEventAsync(new ListingCreated(id, location, description, price)).ConfigureAwait(true);
        }
Ejemplo n.º 3
0
 public Buyer(IAggregateBus aggregateBus, Guid id, Guid prospectId)
     : base(aggregateBus, id)
 {
     _prospectId = prospectId;
     PublishAndApplyEventAsync(new ProspectPromotedToBuyer(id, prospectId)).ConfigureAwait(true);
 }
Ejemplo n.º 4
0
 private Buyer(IAggregateBus aggregateBus)
     :base(aggregateBus)
 {
 }
Ejemplo n.º 5
0
        public Realtor(IAggregateBus aggregateBus, Guid id)
            : base(aggregateBus, id)
        {
//            Publish<Realtor, RealtorWasSetUp>(new RealtorWasSetUp(id));
            PublishAndApplyEventAsync(new RealtorWasSetUp(id)).ConfigureAwait(true);
        }
Ejemplo n.º 6
0
        public Offer(IAggregateBus aggregateBus)
            :base(aggregateBus)
        {

        }
Ejemplo n.º 7
0
 public Prospect(IAggregateBus aggregateBus, Guid id)
     : base(aggregateBus, id)
 {
     
 }
Ejemplo n.º 8
0
 protected Person(IAggregateBus aggregateBus, Guid id)
     : base(aggregateBus, id)
 {
 }