Skip to content

Commit 31c4cc1

Browse files
committed
Updated README.md
1 parent 886009a commit 31c4cc1

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,11 @@ This is an extension for Visual Studio to help finding Command/Request Handlers
99
- In case it was not able to find a handler it will not open anything (maybe there will be better feedback in the future)
1010

1111
## Logic
12-
- It first decides, whether to look for a command handler or a request handler
13-
- According to the handlers type, it will get a reference to the containing project
14-
- For command handlers it will get the domain project
15-
- For request/query handlers it will get the application project
16-
- After that, it will look for *.cs files contained in the following folders
17-
- "commandhandlers"
18-
- "commandhandler"
19-
- "queryhandlers"
20-
- "queryhandler"
21-
- Then it will look for classes that implement `IRequestHandler`
22-
- Iterate over all `IRequestHandler` and determine the first type argument
12+
- Iterate over all solution *.cs documents
13+
- Find all method declarations named "Handle"
2314
- If the type argument matches the request handlers name, it was successful
2415
- The filename and the line position will be determined
25-
- Visual studio opens the file and will goto the line where the handler method is defined
16+
- Visual studio opens the file and set the cursor to the line where the handler method is defined
2617

2718
## Notes
2819
- It also works for records

0 commit comments

Comments
 (0)