HttpCommandOptions
Class net10.0
Optional configuration for resource HTTP commands added with
ResourceBuilderExtensions.WithHttpCommand."/> namespace Aspire.Hosting.ApplicationModel;
public class HttpCommandOptions : Aspire.Hosting.ApplicationModel.CommandOptions{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesEndpointSelectorget; setFunc<EndpointReference> Gets or sets a callback that selects the HTTP endpoint to send the request to when the command is invoked.
GetCommandResultget; setFunc<HttpCommandResultContext, Task<ExecuteCommandResult>> Gets or sets a callback to be invoked after the response is received to determine the result of the command invocation.
HttpClientNameget; setstring? Gets or sets the name of the HTTP client to use when creating it via
IHttpClientFactory.CreateClient. Methodget; setHttpMethod? Gets or sets the HTTP method to use when sending the request.
PrepareRequestget; setFunc<HttpCommandRequestContext, Task> Gets or sets a callback to be invoked to configure the request before it is sent.