<PackageReference Include="Azure.Storage.Blobs" Version="12.25.1" />

OperationState<T>

struct OperationState<T>
A helper structure passed to OperationInternal<T> 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 T Value { get; }

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

Instantiates an OperationState<T> indicating the operation has completed with failures.

public static OperationState<T> Pending(Response rawResponse)

Instantiates an OperationState<T> indicating the operation has not completed yet.

public static OperationState<T> Success(Response rawResponse, T value)

Instantiates an OperationState<T> indicating the operation has completed successfully.