Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

HttpCommandPrepareRequestContext

Handle
📦 Aspire.Hosting v17.0.0

Provides context for HTTP command prepare-request callbacks in polyglot AppHosts.

type HttpCommandPrepareRequestContext interface{}

Properties

propertyArgumentsInteractionInputCollectionget
Gets the invocation arguments supplied by the client when the command is executed.
Arguments() InteractionInputCollection
propertyCancellationToken*CancellationTokenget
The cancellation token.
CancellationToken() (*CancellationToken, error)
propertyEndpointEndpointReferenceget
The endpoint the request is targeting.
Endpoint() EndpointReference
propertyResourceNamestringget
The name of the resource the command was configured on.
ResourceName() (string, error)