Specifies a polling time expressed in milliseconds 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(
	int milliseconds
)
Visual Basic (Declaration)
Public Shared Function WithPolling ( _
	milliseconds As Integer _
) As IRetryOptions

Parameters

milliseconds
Type: System..::.Int32
The polling time expressed in milliseconds.

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(Int32)).

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThrown if the option was called more than once.
System..::.ArgumentOutOfRangeExceptionThrown if milliseconds is negative.

See Also