WatchOperationAsync(Uri, CancellationToken)
abstract
public abstract IAsyncEnumerable<DurableOperation> WatchOperationAsync(Uri operationLocation, CancellationToken cancellationToken = default(CancellationToken)) Streams an operation's statuses from the server-sent events of
{status monitor}/events until the operation is terminal. Parameters
operationLocationUri- The URL of the operation's status monitor.
cancellationTokenCancellationToken- Stops the stream.
Returns
The operation's statuses, which end with its terminal status.
Exceptions
System.Net.Http.HttpRequestException- A response doesn't have a success status code.
