Interface ILinoProtocol
Reads and writes whole LiNo documents on a byte stream. Both TextLinoProtocol and BinaryLinoProtocol implement it, so code written against it switches protocol by swapping one value.
public interface ILinoProtocol
Methods
ReadDocument(PacketReader)
Reads one message; null when the stream ended cleanly.
IReadOnlyList<Link<string>>? ReadDocument(PacketReader input)
Parameters
inputPacketReader
Returns
- IReadOnlyList<Link<string>>
WriteDocument(Stream, IReadOnlyList<Link<string>>)
Writes one message carrying document.
void WriteDocument(Stream output, IReadOnlyList<Link<string>> document)
Parameters
outputStreamdocumentIReadOnlyList<Link<string>>