HttpCommandRequestContext
Class sealed net10.0
Context passed to callback to configure
Http.HttpRequestMessage when using ResourceBuilderExtensions.WithHttpCommand or ResourceBuilderExtensions.WithHttpCommand. namespace Aspire.Hosting.ApplicationModel;
public sealed class HttpCommandRequestContext{ // ...} 7 members
Constructors1
Section titled ConstructorsProperties6
Section titled PropertiesCancellationTokenget; initCancellationToken The cancellation token.
Endpointget; init The endpoint the request is targeting.
HttpClientget; initHttpClient The HTTP client to use for the request.
Requestget; initHttpRequestMessage The HTTP request message.
ResourceNameget; initstring The name of the resource the command was configured on.
ServiceProviderget; initIServiceProvider The service provider.