OperationInternal
A helper class used to build long-running operation instances. In order to use this helper:
Make sure your LRO implements the IOperation interface.Add a private OperationInternal field to your LRO, and instantiate it during construction.Delegate method calls to the OperationInternal implementations.
Supported members:
HasCompleted RawResponse, used for GetRawResponse UpdateStatus UpdateStatusAsync WaitForCompletionResponseAsync WaitForCompletionResponseAsync
public OperationInternal(IOperation operation, ClientDiagnostics clientDiagnostics, Response rawResponse, string operationTypeName = null, IEnumerable<KeyValuePair<string, string>> scopeAttributes = null, DelayStrategy fallbackStrategy = null)
Initializes a new instance of the OperationInternal class.
public static OperationInternal Failed(Response rawResponse, RequestFailedException operationFailedException)
Initializes a new instance of the OperationInternal class in a final failed state.
Initializes a new instance of the OperationInternal class in a final successful state.