Skip to content

IDurableHttpClient.SendAsync(Func<HttpRequestMessage>)

SendAsync(Func<HttpRequestMessage>)

abstract
public abstract DurableTask<DurableHttpResponse> SendAsync(Func<HttpRequestMessage> createRequest)
Sends the request which createRequest creates, as a step of the calling task.

Parameters

createRequestFunc<HttpRequestMessage>
Creates the request; it runs for each attempt of the step.

Returns

A durable task which returns the recorded response, whichever its status code.