Conflict Resolution ???? RRS feed

  • Question

  • how can the conflict resolution be done using merging? what are the requirements for merging??? what should bedone after the callback OnConflict is called????


    • Moved by Max Wang_1983 Thursday, April 21, 2011 10:05 PM forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    Monday, June 9, 2008 6:53 AM


  • You first set conflict's resolve action to 

    SYNC_RESOLVE_ACTION.SRA_MERGE in ISyncCallBack.OnConflict(IChangeConflict conflict) callback.


    Actual merging will be done in

    ISynchronousNotifyingChangeApplierTarget.SaveChange(SYNC_SAVE_ACTION saveAction, ISyncChange changeToSave, ISaveChangeContext saveChangeContext).


    saveAction will be SYNC_SAVE_ACTION.SSA_UPDATE_VERSION_AND_MERGE_DATA for merging. Remote data can be retrieved by calling saveChangeContext.GetChangeData(). Then you have to implement your own data merging mechanism to combine local data and remote data.



    Tuesday, June 17, 2008 5:52 PM