예제 #1
0
파일: Publisher.cs 프로젝트: staxgr/ops
        public Publisher(Topic topic)
        {
            this.topic = topic;
            this.bytes = new byte[topic.GetSampleMaxSize()];

            this.participant = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
            this.inProcessTransport = participant.GetInProcessTransport();
            Init();
        }
예제 #2
0
        public Publisher(Topic topic)
        {
            this.topic = topic;
            this.bytes = new byte[topic.GetSampleMaxSize()];

            this.participant        = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
            this.inProcessTransport = participant.GetInProcessTransport();
            Init();
        }
예제 #3
0
파일: Subscriber.cs 프로젝트: staxgr/ops
 public Subscriber(Topic t)
 {
     if (t == null)
     {
         throw new OPSInvalidTopicException("Not possible to create Subscriber with null Topic!");
     }
     this.topic = t;
     this.participant = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
     deadlineNotifier = DeadlineNotifier.GetInstance();
     inProcessTransport = participant.GetInProcessTransport();
 }
예제 #4
0
 public Subscriber(Topic t)
 {
     if (t == null)
     {
         throw new OPSInvalidTopicException("Not possible to create Subscriber with null Topic!");
     }
     this.topic         = t;
     this.participant   = Participant.GetInstance(topic.GetDomainID(), topic.GetParticipantID());
     deadlineNotifier   = DeadlineNotifier.GetInstance();
     inProcessTransport = participant.GetInProcessTransport();
 }