public SocketInput(MemoryPool memory, IThreadPool threadPool, IBufferSizeControl bufferSizeControl = null) { _memory = memory; _threadPool = threadPool; _bufferSizeControl = bufferSizeControl; _awaitableState = _awaitableIsNotCompleted; }
public FilteredStreamAdapter( string connectionId, Stream filteredStream, MemoryPool memory, IKestrelTrace logger, IThreadPool threadPool, IBufferSizeControl bufferSizeControl) { SocketInput = new SocketInput(memory, threadPool, bufferSizeControl); SocketOutput = new StreamSocketOutput(connectionId, filteredStream, memory, logger); _filteredStream = filteredStream; }
public FilteredStreamAdapter( ConnectionId connectionId, Stream filteredStream, MemoryPool memory, IThreadPool threadPool, IBufferSizeControl bufferSizeControl) { SocketInput = new SocketInput(memory, threadPool, bufferSizeControl); SocketOutput = new StreamSocketOutput(connectionId, filteredStream, memory); _connectionId = connectionId; _filteredStream = filteredStream; _memory = memory; }