Skip to content

CSLA 5 to 8 Stream property in Command object #4564

Discussion options

You must be logged in to vote

I'm surprised that ever worked. That's interesting to me. It must be that BinaryFormatter had a way to serialize a stream? Wow!

In any case, BinaryFormatter is now obsolete in .NET, and so we had to stop supporting or using it in CSLA as well. The only serializer in CSLA 8 is MobileFormatter, and it has its own set of serialization rules.

https://github.com/MarimerLLC/csla/blob/main/docs/serialization.md#mobileformatter-constraints

In CSLA 9 you can create what's called a custom serializer and map it to a type, so you can write your own serializer for Stream if you can figure out how such a thing would work.

I assume that what they must have done is read the entire stream into a MemoryStream

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@walkerboh
Comment options

@rockfordlhotka
Comment options

@walkerboh
Comment options

@rockfordlhotka
Comment options

@walkerboh
Comment options

Answer selected by walkerboh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants