Created
November 23, 2016 07:34
-
-
Save Finglas/8b5bd981aa9e0ba33ae041122a6a448b to your computer and use it in GitHub Desktop.
Entity with Events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Publish() | |
{ | |
// Code | |
DomainEvents.Publish(new PostPublishedEvent(postId, authorId)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment