/// <summary> /// Called when a channel has been opened. /// </summary> public static void HandleChannelOpen(Object sender, EAnpChannelOpenEventArgs args) { EAnpChannel c = args.Channel; if (!c.IsOpen()) return; // Register the channel. c.OnClose += HandleChannelClose; WmEAnpChannel wc = new WmEAnpChannel(c); m_channelTree[c] = wc; }
/// <summary> /// Called when a channel has been opened. /// </summary> public static void HandleChannelOpen(Object sender, EAnpChannelOpenEventArgs args) { EAnpChannel c = args.Channel; if (!c.IsOpen()) { return; } // Register the channel. c.OnClose += HandleChannelClose; WmEAnpChannel wc = new WmEAnpChannel(c); m_channelTree[c] = wc; }
/// <summary> /// Return an array of open channels. /// </summary> private static WmEAnpChannel[] GetChannelArray() { WmEAnpChannel[] a = new WmEAnpChannel[m_channelTree.Values.Count]; m_channelTree.Values.CopyTo(a, 0); return(a); }
/// <summary> /// Return an array of open channels. /// </summary> private static WmEAnpChannel[] GetChannelArray() { WmEAnpChannel[] a = new WmEAnpChannel[m_channelTree.Values.Count]; m_channelTree.Values.CopyTo(a, 0); return a; }