private void ResetChannel(ProducerChannel channel) { ResetChannel(String.Format("{0},{1}", channel.Group, channel.Channel)); }
private void ProducerChannelResetEvent(object sender, ProducerChannel channel) { ResetChannel(channel); }
public PrismZmqReadChannelReqPacket(ProducerChannel channel) : base("cread") { this.Group = channel.Group; this.Channel = channel.Channel; }
private void ChannelResetEventHandler(object sender, ProducerChannel channel) { if (ChannelResetEvent != null) { ChannelResetEvent(this, channel); } }
public void ReadChannelValue(ProducerChannel channel, PrismRequest.ReadChannelValueCallback cb) { try { RequestQueue.Enqueue(new PrismRequest.PrismRequestItem(PrismRequest.PrismRequestItem.PrismRequestMethod.ReadChannel, JsonConvert.SerializeObject(new PrismZmqReadChannelReqPacket(channel)), channel, cb)); RouteProcessQueue(); } catch (SystemException e) { System.Diagnostics.Debug.WriteLine(e.ToString()); cb(e.ToString(), null); } }