Created
April 10, 2023 01:02
-
-
Save nbarnwell/ff2b76f04ea960d6133badb77826e588 to your computer and use it in GitHub Desktop.
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
// This is not CQRS: | |
public interface IRobotService | |
{ | |
void Walk(); | |
void Sleep(); | |
int GetBatteryLevel(); | |
void GoOutAndComeBackInAgain(); | |
} | |
// This is CQRS. You can "level-up" from here, but this is all it is, really | |
public IRobotCommands | |
{ | |
void Walk(); | |
void Sleep(); | |
void GoOutAndComeBackInAgain(); | |
} | |
public IRobotQueries | |
{ | |
int GetBatteryLevel(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment