public RedisRawResponse(IRedisRawResponse parent = null, RedisRawObjectType type = RedisRawObjectType.Undefined) { m_Parent = parent; if (type != RedisRawObjectType.Undefined) { SetType(type); } }
internal void SetType(RedisRawObjectType value) { if (!m_Type.HasValue) { m_Type = value; m_TypeByte = value.ResponseTypeByte(); if (value == RedisRawObjectType.Array) { NewArrayList(); } if (Interlocked.Read(ref m_HasData) == RedisConstants.True) { SetReady(true); } } }
public RedisRawObject(RedisRawObjectType type, object data) { Data = data; Type = type; TypeByte = type.ResponseTypeByte(); }