Show / Hide Table of Contents

Class AsyncBufferedResult

Implementation of a result which asynchronously buffers all values in memory, rather than stream them from QLDB during retrieval. This implementation should only be used when the result is to be returned after the parent transaction is to be committed.

Inheritance
System.Object
BaseBufferedResult
AsyncBufferedResult
Implements
IAsyncResult
System.Collections.Generic.IAsyncEnumerable<Amazon.IonDotnet.Tree.IIonValue>
Inherited Members
BaseBufferedResult.GetConsumedIOs()
BaseBufferedResult.GetTimingInformation()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class AsyncBufferedResult : BaseBufferedResult, IAsyncResult, IAsyncEnumerable<IIonValue>

Methods

| Improve this Doc View Source

BufferResultAsync(IAsyncResult)

Constructor for the result which asynchronously buffers into the memory the supplied result before closing it.

Declaration
public static async Task<AsyncBufferedResult> BufferResultAsync(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result

The result which is to be buffered into memory and closed.

Returns
Type Description
System.Threading.Tasks.Task<AsyncBufferedResult>

The AsyncBufferedResult object.

| Improve this Doc View Source

GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates through a collection.

Declaration
public IAsyncEnumerator<IIonValue> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

Cancellation token.

Returns
Type Description
System.Collections.Generic.IAsyncEnumerator<Amazon.IonDotnet.Tree.IIonValue>

An object that can be used to iterate through the collection.

Implements

IAsyncResult
System.Collections.Generic.IAsyncEnumerable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX