public Transport2HttpHandler(IHttpLayerHandler next, bool isSsl, string serverName, IDateHeaderValueProvider dateProvider, IIpIsLocalChecker ipIsLocalChecker, byte[] buffer, int startBufferOffset, int receiveBufferSize, int constantsOffset, ThreadLocal <char[]> charBuffer, int handlerId) { _next = next; StartBufferOffset = startBufferOffset; ReceiveBufferSize = receiveBufferSize; ResponseBodyBufferOffset = StartBufferOffset + ReceiveBufferSize * 2 + 8; _constantsOffset = constantsOffset; _charBuffer = charBuffer; _handlerId = handlerId; _buffer = buffer; _isSsl = isSsl; _serverName = serverName; _dateProvider = dateProvider; _ipIsLocalChecker = ipIsLocalChecker; _cancellation = new CancellationTokenSource(); _reqRespStream = new ReqRespStream(this); _next.Callback = this; }
public Transport2HttpHandler(IHttpLayerHandler next, bool isSsl, string serverName, IDateHeaderValueProvider dateProvider, IIpIsLocalChecker ipIsLocalChecker, byte[] buffer, int startBufferOffset, int receiveBufferSize, int constantsOffset, ThreadLocal<char[]> charBuffer, int handlerId) { _next = next; StartBufferOffset = startBufferOffset; ReceiveBufferSize = receiveBufferSize; ResponseBodyBufferOffset = StartBufferOffset + ReceiveBufferSize * 2 + 8; _constantsOffset = constantsOffset; _charBuffer = charBuffer; _handlerId = handlerId; _buffer = buffer; _isSsl = isSsl; _serverName = serverName; _dateProvider = dateProvider; _ipIsLocalChecker = ipIsLocalChecker; _cancellation = new CancellationTokenSource(); _reqRespStream = new ReqRespStream(this); _next.Callback = this; }