Commit graph csharp-sdk/src/mcpdotnet/Utils/Json
Author SHA1 Message Date
Stephen Toub
9f0beec63a
Avoid new JsonSerializerOptions instances (#34)
We try hard to avoid creating unnecessary JsonSerializerOptions, as each can have a non-trivial overhead due to how reflection is used by JsonSerializer and the JSO instance serving as a cache.  Rather than creating a new JSO for each transport / endpoint, this can just use a singleton. The only thing it loses is logging when the converter fails, but all of those paths are also throwing an exception, which can be logged higher in the call stack.
2025-03-07 19:50:27 +01:00
Peder Holdgaard Pedersen
4b8df6638e
Logging (#11)
* Logging
Fixed bug in stdio transport argument promotion

* Logging
Fixed bug in stdio transport argument promotion

* Version bump
2025-01-09 19:39:11 +01:00
Peder Holdgaard Pedersen
211cd2175b
Clean up types (#6) 2025-01-05 13:19:24 +01:00
Peder Holdgaard Pedersen
7ccdeb20eb
Package properties (#3)
Dependency upgrades
Comment cleanup
2025-01-03 13:34:16 +01:00
Peder Holdgaard Pedersen
9a244f5770
Clean up and add more comments (#2) 2025-01-02 19:02:24 +01:00
PederHP
fdbd94b3f9 Initial commit 2024-12-30 20:30:31 +01:00