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

Ignore base class property? #28

Closed
binoypatel opened this issue Mar 29, 2017 · 3 comments
Closed

Ignore base class property? #28

binoypatel opened this issue Mar 29, 2017 · 3 comments

Comments

@binoypatel
Copy link

Hi there,

I have a situation where my viewmodel is derived from ReactiveObject and has some properties like Person. Person is POCO property. When I am serializing my viewmodel, it throws following exception:
Unhandled Exception:

MessagePack.FormatterNotRegisteredException: System.IObservable1[[ReactiveUI.IReactivePropertyChangedEventArgs1[[ReactiveUI.IReactiveObject, ReactiveUI, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null]], ReactiveUI, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null]] is not registered in this resolver. resolver:StandardResolver occurred

Is there a way I can exclude or ignore such property from ReactiveObject and have MessagePack to serialize only properties that I am interested in?

Thanks,
Binoy

@neuecc
Copy link
Member

neuecc commented Mar 30, 2017

Thank you.
ReactiveObject is marked DataContract and IgnoreDataMember.
#9 issue can resolve your issue.
I'll try to implement it.

neuecc added a commit that referenced this issue Apr 2, 2017
@neuecc
Copy link
Member

neuecc commented Apr 2, 2017

I've released 1.1.2, it supports IgnoreDataMember and you can serialize ReactiveObject.

@neuecc neuecc closed this as completed Apr 2, 2017
@binoypatel
Copy link
Author

binoypatel commented Apr 2, 2017 via email

AArnott added a commit that referenced this issue Feb 1, 2019
AArnott added a commit that referenced this issue Mar 11, 2023
AArnott added a commit that referenced this issue Mar 11, 2023
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

No branches or pull requests

2 participants