Class StreamableData<T>
Represents an instance of PostData that can handle StreamHandler.
Allows users full control over how they want to write data to the stream to OpenSearch
Inheritance
StreamableData<T>
Assembly: OpenSearch.Net.dll
Syntax
public class StreamableData<T> : PostData, IPostData<T>
Type Parameters
Name |
Description |
T |
The data or a state object used during writing, passed to the handlers to avoid boxing
|
Constructors
|
Edit this page
View Source
StreamableData(T, Action<T, Stream>, Func<T, Stream, CancellationToken, Task>)
Declaration
public StreamableData(T state, Action<T, Stream> syncWriter, Func<T, Stream, CancellationToken, Task> asyncWriter)
Parameters
Methods
|
Edit this page
View Source
Write(Stream, IConnectionConfigurationValues)
Declaration
public override void Write(Stream writableStream, IConnectionConfigurationValues settings)
Parameters
Overrides
|
Edit this page
View Source
WriteAsync(Stream, IConnectionConfigurationValues, CancellationToken)
Declaration
public override Task WriteAsync(Stream writableStream, IConnectionConfigurationValues settings, CancellationToken cancellationToken)
Parameters
Returns
Overrides
Implements
Extension Methods