WaitStrategyExtensions Class
Provides extension members for IWaitStrategy.
public static class WaitStrategyExtensionsMethods
| Name | Description |
|---|---|
| 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.csBounds 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
strategyIWaitStrategytimeoutTimeSpan- The time the strategy has to complete.
Returns
IWaitStrategy A wait strategy.