I see that there is a potential problem with InteractionModel updates. The library will drop additional properties that it doesn't know about, right?
Scenario:
- InteractionModel
Get
- during deserialization properties that don't have a matching property in the models are discarded
- change InteractionModel object to include updated values
- then I do InteractionModel
Update
As a result all unknown properties are lost.
To keep additional properties the JsonExtensionDataAttribute (as i understand it) would solve this but that would require many changes and is probably prone to errors.
Currently I'm wrapping the ManagementApi so that I also have access to the authenticated http client to receive and send JToken to monkeypatch them manually.
(on a side note: I'm also using the ETag and If-Match to make sure that there are no race conditions)
I see that there is a potential problem with InteractionModel updates. The library will drop additional properties that it doesn't know about, right?
Scenario:
GetUpdateAs a result all unknown properties are lost.
To keep additional properties the JsonExtensionDataAttribute (as i understand it) would solve this but that would require many changes and is probably prone to errors.
Currently I'm wrapping the ManagementApi so that I also have access to the authenticated http client to receive and send
JTokento monkeypatch them manually.(on a side note: I'm also using the
ETagandIf-Matchto make sure that there are no race conditions)