Skip to content
Docs Try Aspire
Docs Try

IContainerRuntimeResolver Methods

Interface Methods 1 member
Resolves the configured or auto-detected container runtime asynchronously. The result is cached after the first resolution.
Resolves the container runtime, detecting it from the environment if not explicitly configured. The result is cached after the first call.
public interface IContainerRuntimeResolver
{
public abstract Task<IContainerRuntime> ResolveAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationToken CancellationToken optional A token to cancel the operation.
Task<IContainerRuntime> The resolved container runtime.