src/ZESoft.Azure.Mobile.DataStores.Sync/BaseAzureSyncStore.cs
/// <summary>
/// This method is used to resolve any conflicts that occur. This can happen 
/// if two clients update the same record and then try to push their changes.
/// </summary>
/// <param name="result"></param>
/// <returns></returns>0
This method is used to resolve any conflicts that occur. This can happen
if two clients update the same record and then try to push their changes.
This method is used to resolve any conflicts that occur . This can happen if two clients update the same record and then try to push their changes .
private async Task ResolveErrorAsync(MobileServiceTableOperationError result)
        {
            if ((result.Result == null) || (result.Item == null))
                return;
            var serverItem = result.Result.ToObject<T>();
            var localItem = result.Item.ToObject<T>();
            localItem.Version = serverItem.Version;
            await result.UpdateOperationAsync(JObject.FromObject(localItem));
        }
private async Task ResolveErrorAsync ( MobileServiceTableOperationError result ) { if ( ( result . Result == null ) || ( result . Item == null ) ) return ; var serverItem = result . Result . ToObject < T > ( ) ; var localItem = result . Item . ToObject < T > ( ) ; localItem . Version = serverItem . Version ; await result . UpdateOperationAsync ( JObject . FromObject ( localItem ) ) ; }
This method is used to resolve any conflicts that occur.
This method is used to resolve any conflicts that occur .
// Ignore if we can't see both sides. // always take the client
None
result
MobileServiceTableOperationError
None