locked
SyncOrchestrator.SessionProgress working strange? RRS feed

  • Question

  • Hallow.

    SyncOrchestrator.SessionProgress realy invokes in my program only 2 times
    1st 50 / 100
    2nd 100 / 100
    no matter what data size is and how much time synch process goes?

    s.SessionProgress += new EventHandler<Microsoft.Synchronization.SyncStagedProgressEventArgs>(s_SessionProgress);
    
    void s_SessionProgress(object sender, Microsoft.Synchronization.SyncStagedProgressEventArgs e)
            {
                this.Dispatcher.BeginInvoke(
                    new CDelegate(delegate()
                {
                    Console.WriteLine("compl: "+e.CompletedWork +" total: "+e.TotalWork);
                    this.progressBar1.Value = (int)((double)e.CompletedWork * 100.0 / (double)e.TotalWork);
                }));
            }
    is there any way to make it work normally?
    • Moved by Hengzhe Li Friday, April 22, 2011 2:21 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Tuesday, July 28, 2009 8:53 AM

Answers

  • Hi,

    It is current expected behavior. You cannot improve it. If your sync scope has multiple tables, you can try to register the provider.SyncProgress event. It will be raised per table from both providers.

    Thanks,
    Dong
    This posting is provided AS IS with no warranties, and confers no rights.
    Tuesday, July 28, 2009 7:20 PM
    Moderator