GrabYourPitchforks
GrabYourPitchforks
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
I'd recommend opening a discussion in dotnet/runtime if you want further assistance for this. The feature owners who are knowledgeable in this area are not on this Discord server.
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
But mercifully I've brain dumped everything about it.
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
I remember code reviewing it. 🙂
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
I'd ask Krzysztof then. Because there was definitely support for this added, including backporting to netfx 4.8.
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
There should be an extensibility hook on HttpClient which allows you to specify the client auth options, but the name of that hook escapes me at the moment. Miha would probably know for certain.
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
Should work on both Linux + Win
12 replies
CC#
Created by Puck on 10/28/2024 in #help
Any custom TLS client that has minor implementation of HTTP with custom cipher suite support?
12 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
But keep in mind that not all deserializers are interchangeable. If jsonfx has some bespoke behavior that other deserializers don't have, well, you might not be able to yank it out.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
I would look into Newtonsoft.Json then if you're looking for something that works relatively well on 3.5 and you're not married to Jil or utf8json
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
So { foo } and { bar } and { baz } become "[ { foo }, { bar }, { baz }]" and you deserialize it as an array.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
If that's the case, and assuming all the small payloads are the same type of object, concat them together into a single large payload and deserialize the single large payload.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
Each deserialize operation has overhead. Deserializing a million small payloads is going to be much, much slower than deserializing a single large payload.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
But even the slowest deserializers are still pretty fast overall. I'm really surprised to hear these would be bottlenecking you unless you're deserializing hundreds of MB as part of a level load.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
For 3.5, the popular JSON deserializers are Newtonsoft.Json (OSS) or DataContractJsonSerializer (ships as part of .NET Framework 3.5)
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
(I also know nothing about Swifter and can't make any recommendations regarding it. Sorry.)
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
Swifter.Json is its own nuget library. I don't know why your project would be referencing it directly.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
Note: Utf8Json is no longer actively maintained.
37 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
Utf8Json looks like it has a Unity-3.5 version here: https://github.com/neuecc/Utf8Json/tree/master/src/Utf8Json.UnityClient Per https://github.com/kevin-montrose/Jil/issues/192, looks like there's no support for Jil on .NET Framework 3.5.
37 replies
CC#
Created by Akama Aka on 10/1/2024 in #help
No secure hashing method?
But if you want to use the primitive directly, it's there for your use. 100% safe and supported, assuming you know what you're doing. Have fun. 🙂
84 replies
CC#
Created by Akama Aka on 10/1/2024 in #help
No secure hashing method?
The PasswordHasher<T> type encapsulates the logic of choosing safe defaults and is crypto-agile. It's a higher-level construct that just handles all of these concerns automatically for you. That's why it's what we push people toward.
84 replies