Skip to content
DocsTry Aspire
DocsTry

RequiredCommandValidationContext Constructors

ClassConstructors1 member
Provides context for validating a required command.
Constructor(string, IServiceProvider, CancellationToken)Section titled Constructor(string, IServiceProvider, CancellationToken)
Provides context for validating a required command.
public sealed class RequiredCommandValidationContext
{
public RequiredCommandValidationContext(
string resolvedPath,
IServiceProvider services,
CancellationToken cancellationToken)
{
// ...
}
}
resolvedPathstringThe resolved full path to the command executable.
servicesIServiceProviderThe service provider for accessing application services.
cancellationTokenCancellationTokenA cancellation token that can be used to cancel the validation.