26.59. Class WatchEnumerable<TOutput, TInput>
Namespace: ArmoniK.Core.Adapters.MongoDB
Assembly: ArmoniK.Core.Adapters.MongoDB.dll
Class to convert a
public sealed class WatchEnumerable<TOutput, TInput> : IAsyncEnumerable<TOutput>
26.59.1. Type Parameters
TOutput
Output type
TInput
Input type
26.59.2. Inheritance
26.59.3. Implements
26.59.4. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
26.59.5. Constructors
26.59.5.1. WatchEnumerable(IChangeStreamCursor<TInput>, Func<TInput, TOutput>)
Initializes a TInput into TOutput
public WatchEnumerable(IChangeStreamCursor<TInput> cursor, Func<TInput, TOutput> converter)
26.59.5.1.1. Parameters
cursor IChangeStreamCursor<TInput>
Input change stream cursor
converter Func<TInput, TOutput>
Func to convert the input into the output
26.59.6. Methods
26.59.6.1. GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
public IAsyncEnumerator<TOutput> GetAsyncEnumerator(CancellationToken cancellationToken = default)
26.59.6.1.1. Parameters
cancellationToken CancellationToken
A
26.59.6.1.2. Returns
IAsyncEnumerator<TOutput>
An enumerator that can be used to iterate asynchronously through the collection.