public void Clear() { ClearCollections(); SyncConflicts.Clear(); SyncErrors.Clear(); AnchorBlob = null; }
/// <summary> /// Clears All SyncErrors /// </summary> public void ClearSyncErrors() { foreach (SyncError syncError in SyncErrors) { Collections[syncError.LiveEntity.GetType()].ClearSyncError((OfflineEntity)syncError.LiveEntity); } SyncErrors.Clear(); }
public void AddSerializedError(SyncError error, WinEightContext context) { SyncError oldError = (SyncError)Collections[error.ErrorEntity.GetType()].MapSyncError((OfflineEntity)error.LiveEntity, error, context); SyncErrors.Add(error); if (oldError != null) { ClearSyncError(oldError, context); } }
public void AddSerializedError(SyncError error, IsolatedStorageOfflineContext context) { IsolatedStorageSyncError oldError = (IsolatedStorageSyncError)Collections[error.ErrorEntity.GetType()].MapSyncError((IsolatedStorageOfflineEntity)error.LiveEntity, error, context); SyncErrors.Add(error); if (oldError != null) { ClearSyncError(oldError, context); } }
/// <summary> /// Adds a error to the list of in-memory /// </summary> /// <param name="error"></param> /// <param name="context">Context for the conflict is being added</param> public void AddSyncError(SyncError error, WinEightContext context) { OfflineEntity entity = Collections[error.LiveEntity.GetType()].AddOrUpdateSyncEntity((OfflineEntity)error.LiveEntity); SyncError oldError = Collections[error.LiveEntity.GetType()].MapSyncError(entity, error, context); SyncErrors.Add(error); if (oldError != null) { ClearSyncError(oldError, context); } }
/// <summary> /// Removes the specified sync error /// </summary> /// <param name="error">Error to remove</param> public void RemoveSyncError(SyncError error) { SyncErrors.Remove(error); }