You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*These guidelines are based on the experience with the allReady project. These have been very helpful for us on this project, but may not be applicable to every project. We'll update these as we onboard other projects.*
8
+
9
+
## Conventions and Patterns
10
+
11
+
### Mediatr Components - Naming Conventions
12
+
13
+
The project has adopted a CQRS pattern using the Mediatr library. We have discussed ([read discussion](https://github.com/HTBox/allReady/issues/1262)) the naming for these components and agreed that we will *not* suffix them with "Async".
14
+
15
+
**Commands:**
16
+
17
+
A command message should end with "Command" and descibe the action that is intended. e.g.
18
+
19
+
- EditCampaignCommand
20
+
- DeleteTaskCommand
21
+
22
+
The handlers should match the command message name with the suffix of "Handler". e.g.
23
+
24
+
- EditCampaignCommandHandler
25
+
- DeleteTaskCommandHandler
26
+
27
+
**Queries:**
28
+
29
+
A query message should end with "Query" and describe the data it returns. e.g.
30
+
31
+
- EventSummaryQuery
32
+
- TaskDetailQuery
33
+
34
+
The handlers should match the query message name with the suffix of "Handler". e.g.
0 commit comments