Microsoft.Azure.Mobile Client - Handling Server Error using custom IMobileServiceSyncHandler - Xamarin Forms

前端 未结 2 1277
挽巷
挽巷 2021-01-28 22:52

I have implemented the Azure - Offline Sync based on the documentation / Sample provided by Microsoft Sample in my Xamarin Forms Application.

In the sample / documentati

2条回答
  •  清酒与你
    2021-01-28 23:10

    The exception carries with it a copy of the server version. In my implementation of IMobileServiceSyncHandler I therefore just return error.Value and this seems to work.

    A more extensive example of this kind of logic can be found in this MSDN blog.

    The same author has another example where he shows how you can resolve the conflict in favour of the server copy or the client copy, here.

提交回复
热议问题