Esempio n. 1
0
 public void Dispose()
 {
     m_Off();
     if (m_CloseChannelOnExit)
     {
         ChannelService.CloseChannel(m_ChannelName);
     }
 }
Esempio n. 2
0
 public ChannelScope(string channelName, Action <int, byte[]> handler, bool closeChannelOnExit = true)
 {
     m_CloseChannelOnExit = closeChannelOnExit;
     m_ChannelName        = channelName;
     m_Off = ChannelService.GetOrCreateChannel(channelName, handler);
 }
Esempio n. 3
0
 public static ChannelClientInfo GetChannelClientInfo(string channelName)
 {
     return(GetChannelClientInfo(ChannelService.ChannelNameToId(channelName)));
 }