1 parent a1a0c35 commit 28574b5Copy full SHA for 28574b5
1 file changed
samples/README.md
@@ -59,3 +59,24 @@ If you want to build the samples against published packages from nuget.org:
59
```powershell
60
dotnet build .\samples\Geren.Samples.slnx -nologo
61
```
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
74
+FactoryBridge.Jsop = new(JsonSerializerDefaults.Web)
75
+{
76
+ Converters =
77
+ {
78
+ new JsonCustomConverter(...)
79
+ }
80
+};
81
82
0 commit comments