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);
 }
Beispiel #2
0
        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.ToMessageAlias();
            ContentType = contentType;
        }