private void DeleteEntryCommon(WikiEntry entry) { // delete all of our children entry.Accept(deleteVisitor); // remove from our parent if (entry.Parent != null) { entry.Parent.Children.Remove(entry); // now make sure that any empty directories are tidied up DeleteParentIfEmpty(entry.Parent); } }
private void FireEvent(Action <object, WikiModelEventArgs> eventToFire, WikiEntry entry, string oldSourcePath = "", string oldWikiPath = "", string oldWikiUrl = "") { if (eventToFire != null) { WikiModelEventArgs args = new WikiModelEventArgs( sourcePath: entry.SourcePath, wikiPath: entry.WikiPath, wikiUrl: entry.WikiUrl, oldSourcePath: oldSourcePath, oldWikiPath: oldWikiPath, oldWikiUrl: oldWikiUrl); System.Console.WriteLine("{0} Firing event #{1} on thread: {2}", DateTime.Now.Ticks, args.Id, Thread.CurrentThread.Name); eventToFire(this, args); } }
private void CommonVisit(WikiEntry entry) { entry.SourcePath.Replace(oldPath, renamedPath); entry.WikiPath.Replace(oldPath, renamedPath); entry.WikiUrl.Replace(oldPath, renamedPath); }
public bool UnsafeTryGetAssetBySourcePath(string fullPath, out WikiEntry entry) { return wikiEntryMap.TryGetValue(fullPath, out entry); }
public void AddAsset(string fullPath, WikiEntry entry) { // add mutable asset wikiEntryMap[fullPath] = entry; DestroyImmutableMaps(); }
public bool UnsafeTryGetAssetBySourcePath(string fullPath, out WikiEntry entry) { return(wikiEntryMap.TryGetValue(fullPath, out entry)); }