Exemple #1
0
        public override ChangeBatch GetChangeBatch(uint batchSize, SyncKnowledge destKnowledge, out object changeDataRetriever)
        {
            FileChangesParameters changesParams = Proxy.GetChanges(batchSize, destKnowledge);

            changeDataRetriever = changesParams.DataRetriever;

            return(changesParams.ChangeBatch);
        }
 public FileChangesParameters GetChanges(uint batchSize, Microsoft.Synchronization.SyncKnowledge destKnowledge)
 {
     try {
         FileChangesParameters changesParams = new FileChangesParameters();
         changesParams.ChangeBatch = Provider.GetChangeBatch(batchSize, destKnowledge, out changesParams.DataRetriever);
         return(changesParams);
     }
     catch (Exception ex) {
         throw new FaultException <WebSyncFaultException>(new WebSyncFaultException("Unable to get change batch.", ex));
     }
 }