Inheritance: Manos.IO.Managed.Watcher, ITimerWatcher
示例#1
0
文件: Context.cs 项目: kersny/manos
        public override ITimerWatcher CreateTimerWatcher(TimeSpan timeout, TimeSpan repeat, Action cb)
        {
            var result = new TimerWatcher(this, cb, timeout, repeat);

            timers.Add(result);
            return(result);
        }
示例#2
0
文件: Context.cs 项目: kersny/manos
 internal void Remove(TimerWatcher timer)
 {
     timers.Remove(timer);
 }