Пример #1
0
        /// <summary>
        /// pasar al siguiente timer, anula el actual
        /// </summary>
        /// <param name="result"></param>
        public static bool Inquired(MessageSupervisionResult result)
        {
            if (result.IsCompleted)
            {
                return(false);
            }
            result.Syncro.WaitOne();
            var span = result.Sequence[0];

            result.Sequence.RemoveAt(0);
            TimerFactory.Schedule(OnTimeout, result, Convert.ToInt32(span.TotalMilliseconds));
            result.Syncro.Set();
            return(true);
        }