Class PostData
Assembly: OpenSearch.Net.dll
Syntax
public abstract class PostData
Fields
|
Edit this page
View Source
BufferSize
Declaration
protected const int BufferSize = 81920
Field Value
|
Edit this page
View Source
NewLineByteArray
Declaration
protected static readonly byte[] NewLineByteArray
Field Value
|
Edit this page
View Source
NewLineString
Declaration
protected const string NewLineString = "\n"
Field Value
Properties
|
Edit this page
View Source
DisableDirectStreaming
Declaration
public bool? DisableDirectStreaming { get; set; }
Property Value
|
Edit this page
View Source
Empty
Declaration
public static PostData Empty { get; }
Property Value
|
Edit this page
View Source
Type
Declaration
public PostType Type { get; protected set; }
Property Value
|
Edit this page
View Source
WrittenBytes
Declaration
public byte[] WrittenBytes { get; protected set; }
Property Value
Methods
|
Edit this page
View Source
BufferIfNeeded(IConnectionConfigurationValues, ref MemoryStream, ref Stream)
Declaration
protected void BufferIfNeeded(IConnectionConfigurationValues settings, ref MemoryStream buffer, ref Stream stream)
Parameters
|
Edit this page
View Source
Bytes(byte[])
Declaration
public static PostData Bytes(byte[] bytes)
Parameters
Type |
Name |
Description |
byte[] |
bytes |
|
Returns
|
Edit this page
View Source
FinishStream(Stream, MemoryStream, IConnectionConfigurationValues)
Declaration
protected void FinishStream(Stream writableStream, MemoryStream buffer, IConnectionConfigurationValues settings)
Parameters
|
Edit this page
View Source
FinishStreamAsync(Stream, MemoryStream, IConnectionConfigurationValues, CancellationToken)
Declaration
protected Task FinishStreamAsync(Stream writableStream, MemoryStream buffer, IConnectionConfigurationValues settings, CancellationToken ctx)
Parameters
Returns
|
Edit this page
View Source
MultiJson(IEnumerable<object>)
Declaration
public static PostData MultiJson(IEnumerable<object> listOfObjects)
Parameters
Returns
|
Edit this page
View Source
MultiJson(IEnumerable<string>)
Declaration
public static PostData MultiJson(IEnumerable<string> listOfString)
Parameters
Returns
|
Edit this page
View Source
Serializable<T>(T)
Declaration
public static SerializableData<T> Serializable<T>(T o)
Parameters
Type |
Name |
Description |
T |
o |
|
Returns
Type Parameters
|
Edit this page
View Source
StreamHandler<T>(T, Action<T, Stream>, Func<T, Stream, CancellationToken, Task>)
Declaration
public static PostData StreamHandler<T>(T state, Action<T, Stream> syncWriter, Func<T, Stream, CancellationToken, Task> asyncWriter)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
String(string)
Declaration
public static PostData String(string serializedString)
Parameters
Type |
Name |
Description |
string |
serializedString |
|
Returns
|
Edit this page
View Source
Write(Stream, IConnectionConfigurationValues)
Declaration
public abstract void Write(Stream writableStream, IConnectionConfigurationValues settings)
Parameters
|
Edit this page
View Source
WriteAsync(Stream, IConnectionConfigurationValues, CancellationToken)
Declaration
public abstract Task WriteAsync(Stream writableStream, IConnectionConfigurationValues settings, CancellationToken cancellationToken)
Parameters
Returns
Operators
|
Edit this page
View Source
implicit operator PostData(byte[])
Declaration
public static implicit operator PostData(byte[] byteArray)
Parameters
Type |
Name |
Description |
byte[] |
byteArray |
|
Returns
|
Edit this page
View Source
implicit operator PostData(string)
Declaration
public static implicit operator PostData(string literalString)
Parameters
Type |
Name |
Description |
string |
literalString |
|
Returns
Extension Methods