WaitStrategyExtensions Class

Provides extension members for IWaitStrategy.

public static class WaitStrategyExtensions

Methods

NameDescription
IWaitStrategy.WithTimeout(TimeSpan)Bounds the strategy in time: once timeout elapses, the wait fails with a TimeoutException. The container startup timeout still applies.

IWaitStrategy.WithTimeout(TimeSpan)

WaitStrategyExtensions.cs

Bounds the strategy in time: once timeout elapses, the wait fails with a TimeoutException. The container startup timeout still applies.

extension(IWaitStrategy strategy)
{
    public IWaitStrategy WithTimeout(TimeSpan timeout)
}

Parameters

strategy IWaitStrategy
timeout TimeSpan
The time the strategy has to complete.

Returns

IWaitStrategy A wait strategy.