none
Need ideas on how to display sync progress to application user RRS feed

  • Question

  • I am looking for information and/or suggestions for displaying sync status to our application’s users. I seem to be having trouble with this, but I figure someone has already figured out a good technique and might be willing to share some thoughts on this.

    In my current implementation, I added a SyncProgress event handler to my client side Sync Provider. My event handler extracts the ScopeProgress and sends it to one control (basically a progress bar) and extracts the TableProgress and sends it to another control (also a progress bar). This works fine until we get a “batch applied” event, at which point the TotalChanges property on both the ScopeProgress and the TableProgress no longer updates.

    I added some event logging code to my application and here is a sample of what I am seeing:

    06/23/2010 10:50:37.613: EventType=MethodEntry, ScopeProgressTracker.Update()--[Changes applied = 8828, Changes Failed = 0, Changes Pending = 11, Total Changes = 8839]

    06/23/2010 10:50:37.628: EventType=MethodEntry, ScopeProgressTracker.Update()--[Changes applied = 8838, Changes Failed = 0, Changes Pending = 1, Total Changes = 8839]

    06/23/2010 10:50:37.628: EventType=MethodEntry, ScopeProgressTracker.BatchApplied()--[value = True]

    06/23/2010 10:50:38.113: EventType=MethodEntry, ScopeProgressTracker.Update()--[Changes applied = 8840, Changes Failed = 0, Changes Pending = 0, Total Changes = 8839]

    06/23/2010 10:50:38.159: EventType=MethodEntry, ScopeProgressTracker.Update()--[Changes applied = 8842, Changes Failed = 0, Changes Pending = 0, Total Changes = 8839]

    Later on at the end of the run, I see the following:

    06/23/2010 10:51:03.501: EventType=MethodEntry, ScopeProgressTracker.Update()--[Changes applied = 30335, Changes Failed = 0, Changes Pending = 0, Total Changes = 8839]

    The table update is similar, except once this condition occurs its TotalChanges property always returns zero.

    Is there some other event/object/indicator I should be using? If I can figure out the total number of changes actually being applied, then my progress bars will work just fine. Otherwise, I don’t have any ideas on what to do.

    Thanks for your thoughts and suggestions.

    Wednesday, June 23, 2010 4:13 PM