Пример #1
0
    /// <inheritdoc />
    public TextReader GetTextReader(Stream stream)
    {
        var version = stream.ReadByte();

        if (version != JsonPathVersion)
        {
            throw new NotSupportedException($"Don't know how to decode JSONPATH with wire format {version}, your connection is now broken");
        }

        return(_textHandler.GetTextReader(stream));
    }