IFixWriter

StockSharp.Fix.Native

The interface describing the recorder of data in the FIX protocol format.

Implements: IFixBase, IDisposable

Properties

LastTag
public FixTags LastTag { get; }
value = iFixWriter.LastTag

Last written tag.

Methods

ClearState
public void ClearState()
iFixWriter.ClearState()

Clear state.

FlushAsync
public Task FlushAsync(CancellationToken cancellationToken)
result = iFixWriter.FlushAsync(cancellationToken)

Flushes the stream asynchronously.

cancellationToken
CancellationToken

Returns: Task

FlushDump
public string FlushDump()
result = iFixWriter.FlushDump()

Get data log.

Returns: Data log.

WriteAsync
public ValueTask WriteAsync(FixTags tag, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(tag, cancellationToken)

Write tag.

tag
Tag.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(bool value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the Boolean value.

value
Boolean value.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(int value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the Int32 value.

value
Int32 value.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(long value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the Int64 value.

value
Int64 value.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(decimal value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the Decimal value.

value
Decimal value.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(DateTime value, FastDateTimeParser parser, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, parser, cancellationToken)

To record the DateTime value.

value
DateTime value.
parser
Time parser. Required if data will be transferred as string.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(TimeSpan value, FastTimeSpanParser parser, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, parser, cancellationToken)

To record the TimeSpan value.

value
TimeSpan value.
parser
Time parser. Required if data will be transferred as string.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(string value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the String value.

value
String value.
cancellationToken
Cancellation token.
WriteAsync
public ValueTask WriteAsync(char value, CancellationToken cancellationToken)
result = iFixWriter.WriteAsync(value, cancellationToken)

To record the Char value.

value
Char value.
cancellationToken
Cancellation token.
WriteBytesAsync
public ValueTask WriteBytesAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken)
result = iFixWriter.WriteBytesAsync(buffer, cancellationToken)

To record an array of bytes.

buffer
Bytes buffer.
cancellationToken
Cancellation token.