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: README-nuget.md
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,24 @@ throw new NotFoundException("Custom not found exception message");
114
114
thrownewException("Custom exception message");
115
115
```
116
116
117
-
### Sample example
118
-
Open `docs` folder, inside has a [postman](https://www.postman.com/) collection that could be used for test the sample projects with some requests and validate the middleware in use.
117
+
### Samples
118
+
Inside the `samples` folder has two projects that could be used for test the and validate the middleware.
119
+
120
+
#### Run the sample projects
121
+
- WebAppTest
122
+
```
123
+
dotnet run --project .\samples\CustomExceptionMiddleware.WebAppTest\
124
+
```
125
+
- WebAppTest.Custom
126
+
```
127
+
dotnet run --project .\samples\CustomExceptionMiddleware.WebAppTest.Custom\
- Open `docs` folder, inside has a [postman](https://www.postman.com/) collection that could be used for test.
119
135
120
136
## Logging
121
137
This middleware will `Log` some informations that can be used for monitoring and observability, like `TraceIdentifier`, request and exception informations like message type and stack trace:
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -113,14 +113,29 @@ throw new NotFoundException("Custom not found exception message");
113
113
thrownewException("Custom exception message");
114
114
```
115
115
116
-
### Sample example
117
-
Open `docs` folder, inside has a [postman](https://www.postman.com/) collection that could be used for test the sample projects with some requests and validate the middleware in use.
116
+
### Samples
117
+
Inside the `samples` folder has two projects that could be used for test the and validate the middleware.
118
+
119
+
#### Run the sample projects
120
+
- WebAppTest
121
+
```
122
+
dotnet run --project .\samples\CustomExceptionMiddleware.WebAppTest\
123
+
```
124
+
- WebAppTest.Custom
125
+
```
126
+
dotnet run --project .\samples\CustomExceptionMiddleware.WebAppTest.Custom\
- Open `docs` folder, inside has a [postman](https://www.postman.com/) collection that could be used for test.
118
134
119
135
## Logging
120
136
This middleware will `Log` some informations that can be used for monitoring and observability, like `TraceIdentifier`, request and exception informations like message type and stack trace:
0 commit comments