You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a subclass of System.Exception with its own property that I wanted to serialise. When including all constructors (even methods for ISerializable). This was packed in a faulted Task object. After deserialising (using Akka) all Exception properties were fine, but properties I defined on the class were receiving default values (boolean sent with true was received as false).
After looking at ExceptionSerializerFactory, I realised that all objects inheriting from System.Exception fall into that serialiser but it only serialises properties known to the System.Exception class (such as class name, message, inner exception, ..).
I would expect that this serialiser would either take into account that the exception may have other properties or at least offer a way to have the exception be sent over another serializer which transports this information.
The text was updated successfully, but these errors were encountered:
I created a subclass of
System.Exception
with its own property that I wanted to serialise. When including all constructors (even methods forISerializable
). This was packed in a faultedTask
object. After deserialising (using Akka) all Exception properties were fine, but properties I defined on the class were receiving default values (boolean sent withtrue
was received asfalse
).After looking at
ExceptionSerializerFactory
, I realised that all objects inheriting fromSystem.Exception
fall into that serialiser but it only serialises properties known to theSystem.Exception
class (such as class name, message, inner exception, ..).I would expect that this serialiser would either take into account that the exception may have other properties or at least offer a way to have the exception be sent over another serializer which transports this information.
The text was updated successfully, but these errors were encountered: