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);
 }