update
Reads the current state of the entity, applies a change to it and stores the result. Applies optimistic concurrency using automatic retries.
Return
The entity as returned by the server, possibly with additional fields set. null if the server does not respond with a result entity.
Parameters
A callback that takes the current state of the entity and returns it with the desired modifications applied.
The maximum number of retries to perform for optimistic concurrency before giving up.
Throws
The number of retries performed for optimistic concurrency exceeded maxRetries.
when the server responds with HttpStatusCode.BadRequest.
when the server responds with HttpStatusCode.Unauthorized.
when the server responds with HttpStatusCode.Forbidden.
when the server responds with HttpStatusCode.NotFound or HttpStatusCode.Gone.
for other non-success status codes.