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
successboolWhether the operation succeeded.
statusCodeintThe HTTP status code.
requestChargedoubleThe request charge (RUs for Cosmos, WCUs for DynamoDB).
etagstringThe new ETag after the operation.
sessionTokenstringThe session token for session consistency.
errorMessagestringError message if the operation failed.
Properties
ETag
Gets the ETag for optimistic concurrency.
public string? ETag { get; }
Property Value
ErrorMessage
Gets the error message if the operation failed.
public string? ErrorMessage { get; }
Property Value
IsConcurrencyConflict
Gets a value indicating whether the failure was due to a concurrency conflict (412).
public bool IsConcurrencyConflict { get; }
Property Value
IsNotFound
Gets a value indicating whether the item was not found (404).
public bool IsNotFound { get; }
Property Value
RequestCharge
Gets the request charge (RUs for Cosmos DB, WCUs for DynamoDB).
public double RequestCharge { get; }
Property Value
SessionToken
Gets the session token for session consistency.
public string? SessionToken { get; }
Property Value
StatusCode
Gets the HTTP status code.
public int StatusCode { get; }
Property Value
Success
Gets a value indicating whether the operation succeeded.
public bool Success { get; }