示例#1
0
        } // InitSender

        public TmonReceiver ReceiverCreate(ReceiverType rcvType, string topicName)
        {
            TmonReceiver newReceiver = new TmonReceiver(this, rcvType, topicName);

            newReceiver.Init();
            return(newReceiver);
        } // ReceiverCreate
示例#2
0
 // 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