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