Table of Contents

Class CloudOperationResult

Namespace
Excalibur.Data.CloudNative
Assembly
Excalibur.Data.Abstractions.dll

Represents the result of a cloud-native database operation.

public class CloudOperationResult
Inheritance
CloudOperationResult
Derived
Inherited Members

Constructors

CloudOperationResult(bool, int, double, string?, string?, string?)

Initializes a new instance of the CloudOperationResult class.

public CloudOperationResult(bool success, int statusCode, double requestCharge, string? etag = null, string? sessionToken = null, string? errorMessage = null)

Parameters

success bool

Whether the operation succeeded.

statusCode int

The HTTP status code.

requestCharge double

The request charge (RUs for Cosmos, WCUs for DynamoDB).

etag string

The new ETag after the operation.

sessionToken string

The session token for session consistency.

errorMessage string

Error message if the operation failed.

Properties

ETag

Gets the ETag for optimistic concurrency.

public string? ETag { get; }

Property Value

string

ErrorMessage

Gets the error message if the operation failed.

public string? ErrorMessage { get; }

Property Value

string

IsConcurrencyConflict

Gets a value indicating whether the failure was due to a concurrency conflict (412).

public bool IsConcurrencyConflict { get; }

Property Value

bool

IsNotFound

Gets a value indicating whether the item was not found (404).

public bool IsNotFound { get; }

Property Value

bool

RequestCharge

Gets the request charge (RUs for Cosmos DB, WCUs for DynamoDB).

public double RequestCharge { get; }

Property Value

double

SessionToken

Gets the session token for session consistency.

public string? SessionToken { get; }

Property Value

string

StatusCode

Gets the HTTP status code.

public int StatusCode { get; }

Property Value

int

Success

Gets a value indicating whether the operation succeeded.

public bool Success { get; }

Property Value

bool