public SyncKnowledge GetCurrentSyncKnowledge() { using (SyncDetails sync = new LocalSyncDetails(RemoteDirectoryPath, true)) { return sync.SyncKnowledge; } }
public byte[] GetChanges(uint batchSize, SyncKnowledge destinationKnowledge, LocalSyncDetails syncDetails) { ChangeBatchTransfer changeBatch = new ChangeBatchTransfer(); object dataRetriver = new object(); changeBatch.ChangeBatch = syncDetails.GetChangeBatch(RemoteDirectoryPath, batchSize, destinationKnowledge, out dataRetriver); changeBatch.ChangeDataRetriever = dataRetriver; return changeBatch.ObjectToByteArray(); }
public LocalStore(string folderPath) { sync = new LocalSyncDetails(folderPath, true); this.folderPath = folderPath; }
public void StoreKnowledgeForScope(SyncKnowledge knowledge, ForgottenKnowledge forgotten) { using (SyncDetails sync = new LocalSyncDetails(RemoteDirectoryPath, false)) { sync.StoreKnowledgeForScope(knowledge, forgotten); } }
public bool SaveSyncSession(LocalSyncDetails localSync) { localSync.Save(RemoteDirectoryPath); return true; }