/** * Lookup a watch by its unique identifier associated with this HClient. * If not found return null or raise UnknownWatchException based on * checked flag. */ public override HWatch watch(string id, bool bChecked) { HWatch w = (HWatch)m_watches_Renamed[id]; if (w != null) { return(w); } if (bChecked) { throw new Exception("watch not found for: " + id); } return(null); }
/** * List the open watches associated with this HClient. * This list does *not* contain a watch until it has been successfully * subscribed and assigned an identifier by the server. */ public override HWatch[] watches() { HWatch[] watchArray = new HWatch[m_watches_Renamed.Count]; m_watches_Renamed.Values.CopyTo(watchArray, 0); return(watchArray); }