Exemplo n.º 1
0
        private static bool Remove(this TimerComponent self, long id)
        {
            if (id == 0)
            {
                return(false);
            }

            TimerAction timerAction = self.GetChild <TimerAction>(id);

            if (timerAction == null)
            {
                return(false);
            }
            timerAction.Dispose();
            return(true);
        }
Exemplo n.º 2
0
        private bool Remove(long id)
        {
            if (id == 0)
            {
                return(false);
            }

            TimerAction timerAction = this.GetChild <TimerAction>(id);

            if (timerAction == null)
            {
                return(false);
            }
            timerAction.Dispose();
            return(true);
        }