Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced PreserveReferencesAttribute #82

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Horusiath
Copy link
Contributor

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.

@Aaronontheweb
Copy link
Member

@Horusiath needs a rebase

@Danthar
Copy link
Member

Danthar commented Oct 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants