OrleansContrib / OrleansBlobStorageProvider

DEPRECATED - now part of the orleans codebase :shipit:
13 stars 11 forks source link

Default/Null values can't be ignored when using AsDictionary() #14

Open kobynet opened 8 years ago

kobynet commented 8 years ago

This is rather a question more than it's an issue.

Is there a way we can leverage the ignore nulls flag json.net has to offer here?

Since grainState.AsDictionary() is used, KeyValuePair objects are being serialized which will never be null since key is field name.

richorama commented 8 years ago

Hey @kobynet, good question. Are you concerned that properties with null values will be serialised unnecessarily?

Happy to change that behaviour, if you send a PR with a test that covers the case.