Created
February 6, 2019 07:51
-
-
Save sajeetharan/825ec83fd780b7670146649bf6d4a0ce to your computer and use it in GitHub Desktop.
sajeetharan.com_3_2_2019_eventsource
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
class Product | |
{ | |
val id = 42; | |
fun update(...) | |
{ | |
.. | |
return ProductUpdatedEvent(42, “Mouse”, 1.99) | |
} | |
} | |
..... | |
..... | |
eventBus.publish(event) | |
eventStore.save(event) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment