コード例 #1
0
        public void TimeoutIsSetCorrectly()
        {
            var timeout = TimeSpan.FromMilliseconds(42);
            var updateTimeoutMessage = new UpdateTimeout(timeout);

            Assert.Equal(timeout, updateTimeoutMessage.Timeout);
        }
コード例 #2
0
 /// <summary>
 /// Updates the <see cref="_totalEvaluationTimeout" />.
 /// </summary>
 /// <param name="update">Message that caused the update.</param>
 private void HandleTimeoutUpdate(UpdateTimeout update)
 {
     this._totalEvaluationTimeout = TimeSpanUtil.Min(update.Timeout, this._totalEvaluationTimeout);
 }