We are using JsonServiceClient in our xamarin.forms apps.
It work very well by the way
Our application is having some performance issues especially when a user is over the Atlantique (Canada vs France).
We spot some issues in our code but now I need more data to see where is the issue. The worst case we had was 3 minutes difference. I was on the phone with the user and were accessing the same info.
Do we have a switch that we can enable in the client that I could Log the start and end of the query locally on the IOS or Android device. The log could be 2 lines, Line 1 start time, Line 2 End time with the size of the data transfert.
Where can I add this kind of functionality in the client what method I can override ?
Any suggestion are welcome.
It returns -1 when the Content-Length is unknown by the server, e.g. when returning streaming chunked responses.
There’s no way to determine the length other than reading the entire stream and keeping a count of bytes read, which is something the Service Clients doesn’t do as the Stream is deserialized by the serializer.