/// <summary> /// Updates an existing node in this repository. /// </summary> /// <param name="context">The <see cref="IMansionContext"/>.</param> /// <param name="node">The node which will be updated.</param> /// <param name="modifiedProperties">The properties which to update.</param> protected override void DoUpdateNode(IMansionContext context, Node node, IPropertyBag modifiedProperties) { // excute derived class DecoratedRepository.UpdateNode(context, node, modifiedProperties); // clear the cache for the given node node.ClearFromCache(cachingService); }
/// <summary> /// Deletes an existing node from this repository. /// </summary> /// <param name="context">The <see cref="IMansionContext"/>.</param> /// <param name="node">The pointer to the node which will be deleted.</param> protected override void DoDeleteNode(IMansionContext context, Node node) { // excute derived class DecoratedRepository.DeleteNode(context, node); // clear all cached nodes and nodesets node.ClearFromCache(cachingService); }