RunOperationAsync(IDurableHttpClient, Func<HttpRequestMessage>, DurableHttpOperationOptions?)
staticextension
public static DurableTask<TResult> RunOperationAsync<TResult>(this IDurableHttpClient client, Func<HttpRequestMessage> createRequest, DurableHttpOperationOptions? options = null) Starts an operation with the request which
createRequest creates, and durably waits for its result. Parameters
clientIDurableHttpClient- The client.
createRequestFunc<HttpRequestMessage>- Creates the request which starts the operation; it runs for each attempt of the start.
optionsDurableHttpOperationOptions?- Configures the wait, or
nullfor the defaults.
Returns
A durable task which returns the operation's result.
Exceptions
Orleans.Durable.Http.DurableHttpOperationException- The operation failed or was canceled.
System.Net.Http.HttpRequestException- A response reports neither an operation nor a result.
