-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
When creating a new issue, please make sure the following information is part of your issue description. (if applicable). Thank You!
- Which Akka.Net version you are using
1.3.8 - On which platform you are using Akka.Net
Windows, VS2017 - A list of steps to reproduce the issue. Or an gist or github repo which can be easily used to reproduce your case.
When we have akka.net app that is hosted in .NET Core but may have clients that are running in .NET Full framework, there is compatibility issues with serialization.
Solution:-
I have an implementation for Hyperion to work across .Net Core to .NET Full framework. Currently it supports collections that switch between mscorlib to System.Private.CorLib as well as ExpandoObjects going from System.Dynamic to System.Linq.
It can be found at https://github.com/leo12chandu/akka.net/blob/dev/src/core/Akka/Serialization/HyperionByteHelper.cs
Usage:-
Within the FromBinary of your Akka.Serialization.Serializer custom serializer class, call
//Cross Framework compatible conversions so if client and server use .Net Core and Fullframework. serializer is compatible.
bytes = HyperionByteHelper.GetBytesForCurrentFramework(bytes);
The ToBinary can be left as-is
Blind-Striker, to11mtm and Havretto11mtm
Metadata
Metadata
Assignees
Labels
No labels