Table of Contents

Class CloudQueryResult<TDocument>

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

Represents the result of a cloud-native query operation.

public sealed class CloudQueryResult<TDocument> where TDocument : class

Type Parameters

TDocument

The document type.

Inheritance
CloudQueryResult<TDocument>
Inherited Members

Constructors

CloudQueryResult(IReadOnlyList<TDocument>, double, string?, string?)

Initializes a new instance of the CloudQueryResult<TDocument> class.

public CloudQueryResult(IReadOnlyList<TDocument> documents, double requestCharge, string? continuationToken = null, string? sessionToken = null)

Parameters

documents IReadOnlyList<TDocument>
requestCharge double
continuationToken string
sessionToken string

Properties

ContinuationToken

Gets the continuation token for pagination.

public string? ContinuationToken { get; }

Property Value

string

Documents

Gets the query result documents.

public IReadOnlyList<TDocument> Documents { get; }

Property Value

IReadOnlyList<TDocument>

HasMoreResults

Gets a value indicating whether there are more results.

public bool HasMoreResults { get; }

Property Value

bool

RequestCharge

Gets the total request charge for the query.

public double RequestCharge { get; }

Property Value

double

SessionToken

Gets the session token for session consistency.

public string? SessionToken { get; }

Property Value

string