public NewtonsoftJsonWriter(Type messageType, string contentType, ArrayPool <char> charPool, ArrayPool <byte> bytePool, ObjectPool <JsonSerializer> serializerPool) { DotNetType = messageType; ContentType = contentType; _charPool = charPool; _bytePool = bytePool; _serializerPool = serializerPool; _jsonCharPool = new JsonArrayPool <char>(charPool); }
internal NewtonsoftJsonReader( Type messageType, ArrayPool <char> charPool, ArrayPool <byte> bytePool, ObjectPool <JsonSerializer> serializerPool, string contentType) { _charPool = charPool; _bytePool = bytePool; _serializerPool = serializerPool; _jsonCharPool = new JsonArrayPool <char>(charPool); DotNetType = messageType; MessageType = messageType.ToMessageTypeName(); ContentType = contentType; }