Specifies a timeout value expressed in milliseconds.

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

Syntax

C#
public static IRetryOptions WithTimeout(
	int milliseconds
)
Visual Basic (Declaration)
Public Shared Function WithTimeout ( _
	milliseconds As Integer _
) As IRetryOptions

Parameters

milliseconds
Type: System..::.Int32
The timeout value expressed in milliseconds, or a negative value to specify no timeout value. A value of zero, will let the condition to be evaluated only once.

Return Value

An instance to specify other options for the retry operation.

Remarks

The retry operation fails if the overall duration exceeds the specified timeout value.

If not specified, the default timeout value is set to 10 seconds.

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionThrown if the option was called more than once.

See Also