Created
February 21, 2025 16:14
-
-
Save fredgrott/5f722ff19f096ed4cc54bb233eb5a11a to your computer and use it in GitHub Desktop.
main demo cqrs
This file contains hidden or 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
void main() async { | |
final cqrs = CQRS() | |
..registerAggregate(AccountAggregate()) | |
..resigerRepository(InMemoryRepository<Account>(forAggregate: "account")); | |
cqrs.events.listen(debugPrint); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment