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
Copy file name to clipboardExpand all lines: CLAUDE.md
+46-42Lines changed: 46 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,53 +103,57 @@ The tool's primary function is translating YAML/JSON configuration files into co
103
103
}
104
104
```
105
105
106
+
- When creating a `Builder` or `Modifier`, be sure to set it up as a MediatR command with DI in the handler as needed for services like
107
+
-`IScaffoldingDirectoryStore` for sln and project info (instead of needing to pass with props)
108
+
-`ICraftsmanUtilities` for various Craftsman utilities
109
+
-`IFileSystem` for file operations
110
+
-`IConsoleWriter` for console output
111
+
112
+
Here is an example:
113
+
114
+
```c#
115
+
public static class CreatedDomainEventBuilder
116
+
{
117
+
public class CreatedDomainEventBuilderCommand(string entityName, string entityPlural) : IRequest<bool>
118
+
{
119
+
public string EntityName { get; set; } = entityName;
120
+
public string EntityPlural { get; set; } = entityPlural;
121
+
}
106
122
107
-
108
-
- When creating a `Builder` or `Modifier`, be sure to set it up as a MediatR command like with DI in the handler for `IScaffoldingDirectoryStore` or whatever else is needed. Here is an example:
0 commit comments