Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduleExecutionInfo"/> class.
        /// </summary>
        public ScheduleExecutionInfo()
        {
            m_Scheduler = TaskScheduler.Default;

            m_LocalCancellationSource    = new CancellationTokenSource();
            m_CombinedCancellationSource = m_LocalCancellationSource;

            m_PauseHandler = new SchedulePauseHandler();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduleExecutionInfo"/> class.
        /// </summary>
        public ScheduleExecutionInfo()
        {
            m_Scheduler = TaskScheduler.Default;

            m_LocalCancellationSource = new CancellationTokenSource();
            m_CombinedCancellationSource = m_LocalCancellationSource;

            m_PauseHandler = new SchedulePauseHandler();
        }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduleExecutionInfo"/> class.
        /// </summary>
        /// <param name="scheduler">The <see cref="TaskScheduler"/> that should be used to execute the schedule.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="scheduler"/> is <see langword="null" />.
        /// </exception>
        public ScheduleExecutionInfo(TaskScheduler scheduler)
        {
            {
                Lokad.Enforce.Argument(() => scheduler);
            }

            m_Scheduler = scheduler;

            m_LocalCancellationSource    = new CancellationTokenSource();
            m_CombinedCancellationSource = m_LocalCancellationSource;

            m_PauseHandler = new SchedulePauseHandler();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduleExecutionInfo"/> class.
        /// </summary>
        /// <param name="scheduler">The <see cref="TaskScheduler"/> that should be used to execute the schedule.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="scheduler"/> is <see langword="null" />.
        /// </exception>
        public ScheduleExecutionInfo(TaskScheduler scheduler)
        {
            {
                Lokad.Enforce.Argument(() => scheduler);
            }

            m_Scheduler = scheduler;

            m_LocalCancellationSource = new CancellationTokenSource();
            m_CombinedCancellationSource = m_LocalCancellationSource;

            m_PauseHandler = new SchedulePauseHandler();
        }