Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InputsDialogValidationContext

Handle
📦 Aspire.Hosting v17.0.0

Represents the context for validating inputs in an inputs dialog interaction.

type InputsDialogValidationContext interface{}

Properties

propertyCancellationToken*CancellationTokenget
Gets the cancellation token for the validation operation.
CancellationToken() (*CancellationToken, error)
propertyInputsInteractionInputCollectionget
Gets the inputs that are being validated.
Inputs() InteractionInputCollection
propertyServicesServiceProviderget
Gets the service provider for resolving services during validation.
Services() ServiceProvider

Methods

Adds a validation error for the input with the specified name.
AddValidationError(
inputName string,
errorMessage string,
) error
inputNamestringThe name of the input to add a validation error for.
errorMessagestringThe error message to add.
error

Returns error.