IWaitStrategy Interface

Represents a readiness check that completes once a container is ready to be used.

public interface IWaitStrategy

Methods

NameDescription
WaitAsync(TemporaryContainer, CancellationToken)Waits until the container satisfies this strategy.

WaitAsync(TemporaryContainer, CancellationToken)

Waits until the container satisfies this strategy.

Task WaitAsync(TemporaryContainer container, CancellationToken cancellationToken)

Parameters

container TemporaryContainer
The container to check.
cancellationToken CancellationToken
A token used to abort the wait (for example when the startup timeout elapses).

Returns

Task A task that completes when the container is ready.