<PackageReference Include="Azure.Storage.Blobs" Version="12.24.0-beta.1" />

OperationState

A helper structure passed to OperationInternal to indicate the current operation state. This structure must be instantiated by one of its static methods, depending on the operation state: Use Success when the operation has completed successfully.Use Failure when the operation has completed with failures.Use Pending when the operation has not completed yet.
public bool HasCompleted { get; }

public bool HasSucceeded { get; }

public Response RawResponse { get; }

public static OperationState Failure(Response rawResponse, RequestFailedException operationFailedException = null)

Instantiates an OperationState indicating the operation has completed with failures.

public static OperationState Pending(Response rawResponse)

Instantiates an OperationState indicating the operation has not completed yet.

public static OperationState Success(Response rawResponse)

Instantiates an OperationState indicating the operation has completed successfully.