Ejemplo n.º 1
0
        public GetChangesParameters GetChanges(uint batchSize, SyncKnowledge destinationKnowledge)
        {
            GetChangesParameters changesWrapper = new GetChangesParameters();

            changesWrapper.ChangeBatch = this.peerProvider.GetChangeBatch(batchSize, destinationKnowledge, out changesWrapper.DataRetriever);

            DbSyncContext context = changesWrapper.DataRetriever as DbSyncContext;

            //Check to see if data is batched
            if (context != null && context.IsDataBatched)
            {
                string fileName = new FileInfo(context.BatchFileName).Name;
                this.batchIdToFileMapper[fileName] = context.BatchFileName;
                context.BatchFileName = fileName;
            }
            return(changesWrapper);
        }
Ejemplo n.º 2
0
        public GetChangesParameters GetChanges(uint batchSize, SyncKnowledge destinationKnowledge)
        {
            GetChangesParameters changesWrapper = new GetChangesParameters();
            changesWrapper.ChangeBatch = this.peerProvider.GetChangeBatch(batchSize, destinationKnowledge, out changesWrapper.DataRetriever);

            DbSyncContext context = changesWrapper.DataRetriever as DbSyncContext;
            //Check to see if data is batched
            if (context != null && context.IsDataBatched)
            {
                string fileName = new FileInfo(context.BatchFileName).Name;
                this.batchIdToFileMapper[fileName] = context.BatchFileName;
                context.BatchFileName = fileName;
            }
            return changesWrapper;
        }