예제 #1
0
        public void Terminate()
        {
            if (PollWorker != null)
            {
                PrismPoll pollWorker = PollWorker;

                PollWorker = null;
                pollWorker.Abort();
                Context.Terminate();
                Context = null;
            }
        }
예제 #2
0
 public void Enqueue(List<ProducerChannel> list, PrismPoll.PollCallback cb)
 {
     if (PollWorker != null)
     {
         PollWorker.Enqueue(list, cb);
     }
     else
     {
         cb("Poll worker not initialized", new List<ProducerChannelValue>());
     }
 }
예제 #3
0
 public PrismPollProducer(string endpoint)
 {
     Context = ZmqContext.Create();
     PollWorker = new PrismPoll(Context, endpoint);
     PollWorker.Start();
 }