Skip to content

Commit 28574b5

Browse files
committed
readme
1 parent a1a0c35 commit 28574b5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎samples/README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,24 @@ If you want to build the samples against published packages from nuget.org:
5959
```powershell
6060
dotnet build .\samples\Geren.Samples.slnx -nologo
6161
```
62+
63+
### Example Code Snippets
64+
65+
## Register clients
66+
67+
```csharp
68+
builder.Services.AddGerenClients(http => http.BaseAddress = new(ApiAddress), b => b.AddHttpMessageHandler<TAuthMessageHandler>());
69+
```
70+
71+
## Set JsonSerializerOptions
72+
73+
```csharp
74+
FactoryBridge.Jsop = new(JsonSerializerDefaults.Web)
75+
{
76+
Converters =
77+
{
78+
new JsonCustomConverter(...)
79+
}
80+
};
81+
```
82+

0 commit comments

Comments
 (0)