Hyperion icon indicating copy to clipboard operation
Hyperion copied to clipboard

Introduced PreserveReferencesAttribute

Open Horusiath opened this issue 6 years ago • 2 comments

At this moment Hyperion defines an ability to preserve (and optimize serialization of) references for all reference types at a serializer level. There's no way to tell "I want to use this optimization, but only for objects of given type", which could be useful for things like i.e. Akka.NET IActorRef (if we'll use serializer sessions properly).

This PR introduces PreserveReferencesAttribute, which can be marked on class level. All objects with this attribute will override default SerializerOptions.PreserveObjectReferences settings.

Horusiath avatar Jan 01 '18 09:01 Horusiath

@Horusiath needs a rebase

Aaronontheweb avatar Jan 18 '18 14:01 Aaronontheweb

Besides rebase. Could also use some docs. Like a simple paragraph explaining what it does and why you would want to use it.

Danthar avatar Oct 04 '19 16:10 Danthar