Skip to content

Comment on Named Pipes in .NET 6 with Tray Icon and Serviceparent

Comments

Why is BinaryFormatter insecure?

Edit: Never mind, see https://docs.microsoft.com/en-us/dotnet/standard/serializati...

It's possible to use different formatters for H.Pipes. I will probably update the post to not mislead.

I've recently done something close to this, and found Ceras[0] to be an excellent choice for the serialization layer.

[0] https://github.com/rikimaru0345/Ceras

I added a package for Ceras: https://www.nuget.org/packages/H.Formatters.Ceras/ I ran into some issues in testing where the data hash after serialization/deserialization does not match for Ceras. I added the package anyway, but this needs to be used with caution.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.