示例#1
0
 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));
     }
 }
示例#2
0
        public DbChangesParameters GetChanges(uint batchSize, Microsoft.Synchronization.SyncKnowledge destKnowledge)
        {
            DbChangesParameters changesParams = new DbChangesParameters();

            changesParams.ChangeBatch = Provider.GetChangeBatch(batchSize, destKnowledge, out changesParams.DataRetriever);

            DbSyncContext context = changesParams.DataRetriever as DbSyncContext;

            // Check to see if data is batched
            if (context != null && context.IsDataBatched)
            {
                // Don't send the file location info, just send the file
                string filename = new FileInfo(context.BatchFileName).Name;
                batchIdToFileMapper[filename] = context.BatchFileName;
                context.BatchFileName         = filename;
            }

            return(changesParams);
        }
示例#3
0
 public override Microsoft.Synchronization.FullEnumerationChangeBatch GetFilteredFullEnumerationChangeBatch(uint batchSize, Microsoft.Synchronization.FilterInfo filterInfo, ReplicaMetadata.ItemFilterCallback filterCallback, Microsoft.Synchronization.SyncId lowerEnumerationBound, Microsoft.Synchronization.SyncKnowledge destinationKnowledge)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public override Microsoft.Synchronization.ChangeBatch GetFilteredChangeBatch(uint batchSize, Microsoft.Synchronization.SyncKnowledge destinationKnowledge, Microsoft.Synchronization.FilterInfo filterInfo, ReplicaMetadata.ItemFilterCallback filterCallback)
 {
     throw new NotImplementedException();
 }