Skip to content

IDurableHttpClient.WaitForOperationAsync(DurableHttpOperation, DurableHttpOperationOptions?)

WaitForOperationAsync(DurableHttpOperation, DurableHttpOperationOptions?)

abstract
public abstract DurableTask<TResult> WaitForOperationAsync<TResult>(DurableHttpOperation operation, DurableHttpOperationOptions? options = null)
Durably waits for an operation's result.

Parameters

operationDurableHttpOperation
The operation which IDurableHttpClient returned.
optionsDurableHttpOperationOptions?
Configures the wait, or null for 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 has a status code which reports neither a status nor a result.