/// <summary> /// Adds or update an entry and deletes all children from storage. /// </summary> /// <param name="e">Ignored Entity.</param> public void AddOrUpdateEntryAndDeleteAllChildrenFromStorage(IIgnoredEntity e) { this.Add(e); var mappedEntry = this.storage.GetObjectByRemoteId(e.ObjectId); if (mappedEntry != null) { var children = this.storage.GetChildren(mappedEntry); if (children != null) { foreach (var child in children) { this.storage.RemoveObject(child); } } } }
/// <summary> /// Remove the specified ignore form the given collection /// </summary> /// <param name="ignore">Ignored entity.</param> public void Remove(IIgnoredEntity ignore) { this.collection.Remove(ignore); }
/// <summary> /// Add the specified ignore to the given collection /// </summary> /// <param name="ignore">Ignored entity.</param> public void Add(IIgnoredEntity ignore) { this.collection.Add(ignore); }
public void Remove(IIgnoredEntity ignore) { this.entries.Remove(ignore.ObjectId); }
public void Add(IIgnoredEntity ignore) { this.entries[ignore.ObjectId] = ignore; }