Esempio n. 1
0
 private void ResetChannel(ProducerChannel channel)
 {
     ResetChannel(String.Format("{0},{1}", channel.Group, channel.Channel));
 }
Esempio n. 2
0
 private void ProducerChannelResetEvent(object sender, ProducerChannel channel)
 {
     ResetChannel(channel);
 }
Esempio n. 3
0
 public PrismZmqReadChannelReqPacket(ProducerChannel channel)
     : base("cread")
 {
     this.Group = channel.Group;
     this.Channel = channel.Channel;
 }
Esempio n. 4
0
 private void ChannelResetEventHandler(object sender, ProducerChannel channel)
 {
     if (ChannelResetEvent != null)
     {
         ChannelResetEvent(this, channel);
     }
 }
Esempio n. 5
0
 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);
     }
 }