ikyriak / IdempotentAPI

A .NET library that handles the HTTP write operations (POST and PATCH) that can affect only once for the given request data and idempotency-key by using an ASP.NET Core attribute (filter).
MIT License
258 stars 39 forks source link

Not working in ASP .NET Core 5.0 - BinaryFormatter methods are obsolete #17

Closed ikyriak closed 2 years ago

ikyriak commented 3 years ago

BinaryFormatter serialization methods are obsolete in ASP .NET Core 5.0. The BinaryFormatter is used in the Utils.cs class for Serializing and Deserializing the MemoryStream.

The recommended action is to stop using BinaryFormatter and consider using JsonSerializer or XmlSerializer.

fjsosa commented 3 years ago

A workaround in the meantime: enable BinaryFormatterSerialization by adding this to the csproj: ` ...

true

`

The idea of this library is excellent, waiting for new versions for net.core 5.0

ikyriak commented 2 years ago

The related improvement has been included in the 1.0.0 RC.01 release.

Please read the README.md and CHANGELOG.md files because this release has breaking changes.

You can find the 1.0.0 RC.01 NuGet packages here.

If you have any suggestions or comments please, do not hesitate to send them 😉