StartOperationAsync(Func<HttpRequestMessage>)
abstract
public abstract DurableTask<DurableHttpOperation> StartOperationAsync(Func<HttpRequestMessage> createRequest)Sends the request which starts an operation, as a step of the calling task, and returns the operation.
Parameters
createRequestFunc<HttpRequestMessage>- Creates the request; it runs for each attempt of the step.
Returns
A durable task which returns the operation, which the start response may already have completed.
Exceptions
System.Net.Http.HttpRequestException- The response reports neither an operation nor a result, or accepts the request without locating its operation.
