{"action":"created","issue":{"url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/4","repository_url":"https://api.github.com/repos/EduardoPires/EquinoxProject","labels_url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/4/comments","events_url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/4/events","html_url":"https://github.com/EduardoPires/EquinoxProject/issues/4","id":203107389,"number":4,"title":"Commit on Domain Layers","user":{"login":"jedielson","id":12877446,"avatar_url":"https://avatars.githubusercontent.com/u/12877446?v=3","gravatar_id":"","url":"https://api.github.com/users/jedielson","html_url":"https://github.com/jedielson","followers_url":"https://api.github.com/users/jedielson/followers","following_url":"https://api.github.com/users/jedielson/following{/other_user}","gists_url":"https://api.github.com/users/jedielson/gists{/gist_id}","starred_url":"https://api.github.com/users/jedielson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedielson/subscriptions","organizations_url":"https://api.github.com/users/jedielson/orgs","repos_url":"https://api.github.com/users/jedielson/repos","events_url":"https://api.github.com/users/jedielson/events{/privacy}","received_events_url":"https://api.github.com/users/jedielson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-25T13:49:07Z","updated_at":"2017-02-15T06:11:18Z","closed_at":null,"body":"Hi Eduardo.\r\n\r\nI have read in some article that the application layer is the layer responsible for controlling the transactions carried out by the application.\r\n\r\nHowever, in this project the transactions are being commited in Command handlers.\r\n\r\nOf course, it would be quiet to inject an IUnityOfWork implementation into the application services, but with that, we would lose the benefit of launching domain events after the commit is completed, from the domain.\r\n\r\nIt would be kind of weird, like ... Let's launch a domain event, starting from the application layer. O.0\r\n\r\nSo I'm in a dilemma.\r\nCan I commit the transaction from the domain, or should we improve the design? And besides, how to improve the design?\r\n\r\nThanks for listening!"},"comment":{"url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/comments/279925936","html_url":"https://github.com/EduardoPires/EquinoxProject/issues/4#issuecomment-279925936","issue_url":"https://api.github.com/repos/EduardoPires/EquinoxProject/issues/4","id":279925936,"user":{"login":"EduardoPires","id":5068797,"avatar_url":"https://avatars.githubusercontent.com/u/5068797?v=3","gravatar_id":"","url":"https://api.github.com/users/EduardoPires","html_url":"https://github.com/EduardoPires","followers_url":"https://api.github.com/users/EduardoPires/followers","following_url":"https://api.github.com/users/EduardoPires/following{/other_user}","gists_url":"https://api.github.com/users/EduardoPires/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoPires/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoPires/subscriptions","organizations_url":"https://api.github.com/users/EduardoPires/orgs","repos_url":"https://api.github.com/users/EduardoPires/repos","events_url":"https://api.github.com/users/EduardoPires/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoPires/received_events","type":"User","site_admin":false},"created_at":"2017-02-15T06:11:18Z","updated_at":"2017-02-15T06:11:18Z","body":"There is no problem raising events from application layer, it's a business layer too.\r\n\r\nBut it's a different approach using the CQRS concerns and segregating the read / write way.\r\nThere is no exact rule for follow, this is a very known standard, feel free to use in this way without caring about design flaws.\r\n\r\nI think that's not necessary to think about design improvements, do you have some suggestion?"}}
{"actor":{"display_login":"EduardoPires"}}