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

                PollWorker = null;
                pollWorker.Abort();
                Context.Terminate();
                Context = null;
            }
        }
Example #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>());
     }
 }
Example #3
0
 public PrismPollProducer(string endpoint)
 {
     Context = ZmqContext.Create();
     PollWorker = new PrismPoll(Context, endpoint);
     PollWorker.Start();
 }