} // InitSender public TmonReceiver ReceiverCreate(ReceiverType rcvType, string topicName) { TmonReceiver newReceiver = new TmonReceiver(this, rcvType, topicName); newReceiver.Init(); return(newReceiver); } // ReceiverCreate
// 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