// Constructor public TmonSource(TmonContext parentTmonContext, string topicName) { _objectId = TmonContext.GetNextObjectId(); _parentTmonContext = parentTmonContext; // Encode topic. _topicName = topicName.Replace("\\", "\\1").Replace(",", "\\2"); } // TmonSource
// Constructor public TmonReceiver(TmonContext parentTmonContext, ReceiverType rcvType, string topicName) { _objectId = TmonContext.GetNextObjectId(); _parentTmonContext = parentTmonContext; _rcvType = rcvType; // Encode topic. _topicName = topicName.Replace("\\", "\\1").Replace(",", "\\2"); } // TmonReceiver
// Constructor public TmonConnection(TmonReceiver parentTmonReceiver, TmonContext parentTmonContext, string sourceName) { _objectId = TmonContext.GetNextObjectId(); _parentTmonReceiver = parentTmonReceiver; _parentTmonContext = parentTmonContext; // Encode source string. _sourceName = sourceName.Replace("\\", "\\1").Replace(",", "\\2"); } // TmonConnection