Specifies a polling time between each consecutive evaluation of the condition.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static IRetryOptions WithPolling(
	TimeSpan polling
)
Visual Basic (Declaration)
Public Shared Function WithPolling ( _
	polling As TimeSpan _
) As IRetryOptions

Parameters

polling
Type: System..::.TimeSpan
The polling time.

Return Value

An instance to specify other options for the retry operation.

Remarks

If not specified, the default polling time is zero; which causes the condition to be evaluated as fast as possible, with only a brief suspension of the current thread (Sleep(TimeSpan)).

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThrown if the option was called more than once.
System..::.ArgumentOutOfRangeExceptionThrown if polling represents a negative duration.

See Also