FromTimerOptions() 공개 정적인 메소드

Returns a TimerOptions for the specified TimerOptions, or null if the specified TimerOptions is null.
public static FromTimerOptions ( TimerOptions options ) : TimerOptions
options TimerOptions A .
리턴 TimerOptions
예제 #1
0
파일: Timer.cs 프로젝트: YisenYu/Hourglass
        /// <summary>
        /// Initializes a new instance of the <see cref="Timer"/> class.
        /// </summary>
        /// <param name="options">Configuration data for this timer.</param>
        public Timer(TimerOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            this.timerStart = null;
            this.options    = TimerOptions.FromTimerOptions(options);

            this.UpdateHourglassTimer();
        }