Re: AR Create instance for AR

Jose Fernandez <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <[email protected]>
The way i see it, and someone correct me please if i am mistaken, i like to think of aggregates in terms of INSTANCES, and domain services more like STATIC CLASS... if you know what i mean.

Once you instantiate a AR of type Task, all of its operation should be concerned only on the instance.

The way you put it sounds to me more like a DOMAIN Service sort of speaking.

What are you trying to achieve with your DispatchFor method? Why do you modify the State enum of your instance and return a new instance of Task that has automatically a PENDING value?

I thing you got things mixed.



------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.