// Group: Functions // __________________________________________________________________________ /* Constructor: Manager */ public Manager(HTML.Target target) : base(target.EngineInstance) { this.target = target; accessLock = new System.Threading.ReaderWriterLockSlim(System.Threading.LockRecursionPolicy.SupportsRecursion); changeWatchers = new List <IChangeWatcher>(); prefixTopicIDs = null; }
/* Constructor: Context * Creates a context that includes a class page. */ public Context(HTML.Target target, int classID, Symbols.ClassString classString, Topic topic = null) { #if DEBUG if (classString != null && classID == 0) { throw new Exception("Can't create a Context from a class string when its ID isn't known."); } if (classID != 0 && classString == null) { throw new Exception("Can't create a Context from a class ID when its string isn't known."); } #endif this.target = target; this.page = new PageLocation(classID, classString); this.topic = topic; }
/* Constructor: Context * Creates a context that includes a source file page. */ public Context(HTML.Target target, int fileID, Topic topic = null) { this.target = target; this.page = new PageLocation(fileID); this.topic = topic; }
// Group: Functions // __________________________________________________________________________ /* Constructor: Context * Creates a context with the passed parameters. */ public Context(HTML.Target target, PageLocation page = default, Topic topic = null) { this.target = target; this.page = page; this.topic = topic; }