Source/NFX/Throttling/TimeSpacingThrottle.cs
/// <summary>
/// Try to reserve a value of units assuming given time.
/// </summary>
/// <param name="time">Monotonically increasing time value</param>
/// <param name="value">The value of timeslots needed to reserve</param>
/// <returns>True if reservation is successful</returns>
Try to reserve a value of units assuming given time.
Try to reserve a value of units assuming given time .
internal override bool Try(DateTime time, double value)
            {
                if (time < m_NextTime)
                    return false;
                m_NextTime = time.AddSeconds(m_MinTimeSlice * value);
                return true;
            }
internal override bool Try ( DateTime time , double value ) { if ( time < m_NextTime ) return false ; m_NextTime = time . AddSeconds ( m_MinTimeSlice * value ) ; return true ; }
Try to reserve a value of units assuming given time.
Try to reserve a value of units assuming given time .
True if reservation is successful
True if reservation is successful
time
DateTime
Monotonically increasing time value
Monotonically increasing time value
value
double
The value of timeslots needed to reserve
The value of timeslots needed to reserve