Skip to content
DocsTry Aspire
DocsTry

HttpCommandRequestContext Properties

ClassProperties6 members
Context passed to callback to configure Http.HttpRequestMessage when using ResourceBuilderExtensions.WithHttpCommand or ResourceBuilderExtensions.WithHttpCommand.
CancellationTokenSection titled CancellationTokenCancellationToken
The cancellation token.
public CancellationToken CancellationToken { get; init; }
The endpoint the request is targeting.
public EndpointReference Endpoint { get; init; }
HttpClientSection titled HttpClientHttpClient
The HTTP client to use for the request.
public HttpClient HttpClient { get; init; }
RequestSection titled RequestHttpRequestMessage
The HTTP request message.
public HttpRequestMessage Request { get; init; }
ResourceNameSection titled ResourceNamestring
The name of the resource the command was configured on.
public string ResourceName { get; init; }
ServiceProviderSection titled ServiceProviderIServiceProvider
The service provider.
public IServiceProvider ServiceProvider { get; init; }