Exemple #1
0
 public void ChannelInterval(StopNotifyInfo info, int interval)
 {
     foreach (var item in m_Channels.Values)
     {
         if (info.isAllow(item.ChannelName, item.Item))
         {
             item.Interval = new TimeSpan(0, 0, interval);
         }
     }
 }
Exemple #2
0
 public void RemoveStopNotify(StopNotifyInfo info)
 {
     m_Publish.OnValueUpdated -= OnValueUpdated;
     foreach (var channel in m_Channels)
     {
         if (info.isAllow(channel.Value.ChannelName, channel.Value.Item))
         {
             TimerChannel cinfo;
             m_Channels.TryRemove(channel.Key, out cinfo);
             cinfo.Dispose();
         }
     }
     m_Publish.OnValueUpdated += OnValueUpdated;
 }