Skip to content

Commit f73f987

Browse files
committed
update how to use the informations on README file
1 parent f39095d commit f73f987

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README-nuget.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ It's very simple to use, go to `Startup.cs` on `Configure()` method and add this
3232
app.UseCustomExceptionMiddleware();
3333
```
3434

35-
Example output
35+
Or if you are using any of the newer versions of .NET put the code after the app `build` on `Program.cs` file.
36+
```c#
37+
var app = builder.Build();
38+
app.UseCustomExceptionMiddleware();
39+
```
40+
41+
Example output
3642
```json
3743
{
3844
"type": "VALIDATION_ERRORS",

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ It's very simple to use, go to `Startup.cs` on `Configure()` method and add this
3333
app.UseCustomExceptionMiddleware();
3434
```
3535

36-
Example output
36+
Or if you are using any of the newer versions of .NET put the code after the app `build` on `Program.cs` file.
37+
```c#
38+
var app = builder.Build();
39+
app.UseCustomExceptionMiddleware();
40+
```
41+
42+
Example output
3743
```json
3844
{
3945
"type": "VALIDATION_ERRORS",

0 commit comments

Comments
 (0)