97 references to PipeOptions
InMemory.FunctionalTests (2)
TestTransport\InMemoryTransportConnection.cs (2)
32var pair = DuplexPipe.CreateConnectionPair(new PipeOptions(memoryPool, readerScheduler: scheduler, useSynchronizationContext: false), new PipeOptions(memoryPool, writerScheduler: scheduler, useSynchronizationContext: false));
Microsoft.AspNetCore.Http.Connections (2)
HttpConnectionDispatcherOptions.cs (2)
140internal PipeOptions TransportPipeOptions => _transportPipeOptions ??= new PipeOptions(pauseWriterThreshold: TransportMaxBufferSize, resumeWriterThreshold: TransportMaxBufferSize / 2, readerScheduler: PipeScheduler.ThreadPool, useSynchronizationContext: false); 142internal PipeOptions AppPipeOptions => _appPipeOptions ??= new PipeOptions(pauseWriterThreshold: ApplicationMaxBufferSize, resumeWriterThreshold: ApplicationMaxBufferSize / 2, readerScheduler: PipeScheduler.ThreadPool, useSynchronizationContext: false);
Microsoft.AspNetCore.Http.Connections.Client (3)
HttpConnectionOptions.cs (2)
125internal PipeOptions TransportPipeOptions => _transportPipeOptions ??= new PipeOptions(pauseWriterThreshold: TransportMaxBufferSize, resumeWriterThreshold: TransportMaxBufferSize / 2, readerScheduler: PipeScheduler.ThreadPool, useSynchronizationContext: false); 127internal PipeOptions AppPipeOptions => _appPipeOptions ??= new PipeOptions(pauseWriterThreshold: ApplicationMaxBufferSize, resumeWriterThreshold: ApplicationMaxBufferSize / 2, readerScheduler: PipeScheduler.ThreadPool, useSynchronizationContext: false);
Internal\ClientPipeOptions.cs (1)
10public static PipeOptions DefaultOptions = new PipeOptions(writerScheduler: PipeScheduler.ThreadPool, readerScheduler: PipeScheduler.ThreadPool, useSynchronizationContext: false);
Microsoft.AspNetCore.Http.Connections.Tests (2)
ServerSentEventsTests.cs (2)
66var pair = DuplexPipe.CreateConnectionPair(PipeOptions.Default, new PipeOptions(readerScheduler: PipeScheduler.Inline)); 88var pair = DuplexPipe.CreateConnectionPair(PipeOptions.Default, new PipeOptions(readerScheduler: PipeScheduler.Inline));
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.cs (2)
298var pipe = new Pipe(new PipeOptions( 493_bodyInputPipe = new Pipe(new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.ThreadPool, minimumSegmentSize: MinAllocBufferSize));
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
515=> new Pipe(new PipeOptions
Internal\Http2\Http2Connection.cs (1)
1752private PipeOptions GetInputPipeOptions() => new PipeOptions(pool: _context.MemoryPool,
Internal\Http2\Http2OutputProducer.cs (1)
758=> new Pipe(new PipeOptions
Internal\Http2\Http2Stream.cs (1)
635=> new Pipe(new PipeOptions
Internal\Http3\Http3OutputProducer.cs (1)
462=> new Pipe(new PipeOptions
Internal\Http3\Http3Stream.cs (1)
1172=> new Pipe(new PipeOptions
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
BufferWriterTests.cs (1)
16Pipe = new Pipe(new PipeOptions(useSynchronizationContext: false, pauseWriterThreshold: 0, resumeWriterThreshold: 0));
Http1\Http1ConnectionTestsBase.cs (1)
35var options = new PipeOptions(_pipelineFactory, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http1\Http1OutputProducerTests.cs (8)
35var pipeOptions = new PipeOptions 60var pipeOptions = new PipeOptions 88var pipeOptions = new PipeOptions 139var pipeOptions = new PipeOptions 159var pipeOptions = new PipeOptions 179var pipeOptions = new PipeOptions 201var pipeOptions = new PipeOptions 223pipeOptions = pipeOptions ?? new PipeOptions();
Http2\Http2FrameWriterTests.cs (3)
38var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline)); 60var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline)); 76var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline));
Http3\Http3FrameWriterTests.cs (3)
41var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline)); 55var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline)); 74var pipe = new Pipe(new PipeOptions(_dirtyMemoryPool, PipeScheduler.Inline, PipeScheduler.Inline));
Http3\Http3HttpProtocolFeatureCollectionTests.cs (2)
24transport: DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()).Application,
HttpResponseHeadersTests.cs (1)
29var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
PipelineExtensionTests.cs (1)
24_pipe = new Pipe(new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false));
StartLineTests.cs (1)
519var options = new PipeOptions(MemoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
TestHelpers\TestInput.cs (1)
28var options = new PipeOptions(pool: _memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (16)
ChunkWriterBenchmark.cs (1)
24var pipe = new Pipe(new PipeOptions(_memoryPool));
HeaderCollectionBenchmark.cs (1)
328var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http1ConnectionBenchmark.cs (1)
31var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http1ConnectionParsingOverheadBenchmark.cs (1)
27var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http1LargeWritingBenchmark.cs (1)
67var options = new PipeOptions(_memoryPool, useSynchronizationContext: false);
Http1ReadingBenchmark.cs (1)
96var options = new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http1WritingBenchmark.cs (1)
101var options = new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http2\Http2ConnectionBenchmarkBase.cs (1)
47var options = new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Http2\Http2FrameWriterBenchmark.cs (1)
29var options = new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
HttpProtocolFeatureCollection.cs (1)
230var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
InMemoryTransportBenchmark.cs (2)
172var inputOptions = new PipeOptions(useSynchronizationContext: false); 173var outputOptions = new PipeOptions(useSynchronizationContext: false);
PipeThroughputBenchmark.cs (1)
23_pipe = new Pipe(new PipeOptions(_memoryPool));
RequestParsingBenchmark.cs (2)
28var options = new PipeOptions(_memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false); 49Pipe = new Pipe(new PipeOptions(_memoryPool));
ResponseHeaderCollectionBenchmark.cs (1)
176var options = new PipeOptions(memoryPool, readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeConnectionListener.cs (2)
57_inputOptions = new PipeOptions(_memoryPool, PipeScheduler.ThreadPool, PipeScheduler.Inline, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false); 58_outputOptions = new PipeOptions(_memoryPool, PipeScheduler.Inline, PipeScheduler.ThreadPool, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (2)
60var inputOptions = new PipeOptions(MemoryPool, PipeScheduler.ThreadPool, PipeScheduler.Inline, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false); 61var outputOptions = new PipeOptions(MemoryPool, PipeScheduler.Inline, PipeScheduler.ThreadPool, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (6)
Client\SocketConnectionFactory.cs (2)
42_inputOptions = new PipeOptions(_memoryPool, applicationScheduler, transportScheduler, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false); 43_outputOptions = new PipeOptions(_memoryPool, transportScheduler, applicationScheduler, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false);
SocketConnectionContextFactory.cs (4)
56InputOptions = new PipeOptions(memoryPool, applicationScheduler, transportScheduler, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false), 57OutputOptions = new PipeOptions(memoryPool, transportScheduler, applicationScheduler, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false), 73InputOptions = new PipeOptions(memoryPool, applicationScheduler, transportScheduler, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false), 74OutputOptions = new PipeOptions(memoryPool, transportScheduler, applicationScheduler, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false),
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.cs (1)
226var connection = new TestConnection(pipeOptions: new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, pauseWriterThreshold: 100, useSynchronizationContext: false, resumeWriterThreshold: 50));
TestConnection.cs (1)
55var options = pipeOptions ?? new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false);
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
BroadcastBenchmark.cs (1)
41var options = new PipeOptions();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
43var options = new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false,
Microsoft.AspNetCore.SignalR.Tests (26)
Internal\MessageBufferTests.cs (26)
22var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 50var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions(pauseWriterThreshold: 200000, resumeWriterThreshold: 100000)); 87var pipeOptions = new PipeOptions(pauseWriterThreshold: 100, resumeWriterThreshold: 50); 88var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), pipeOptions); 128var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 177var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 221var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 245var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 288var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 325var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 367var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), new PipeOptions()); 404var pipeOptions = new PipeOptions(pauseWriterThreshold: 250, resumeWriterThreshold: 120); 405var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), pipeOptions); 415DuplexPipe.UpdateConnectionPair(ref pipes, connection, new PipeOptions(pauseWriterThreshold: 100, resumeWriterThreshold: 50)); 446var pipeOptions = new PipeOptions(pauseWriterThreshold: 100, resumeWriterThreshold: 50); 447var pipes = DuplexPipe.CreateConnectionPair(new PipeOptions(), pipeOptions); 544var input = new Pipe(pipeOptions ?? new PipeOptions());
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
43var options = new PipeOptions(readerScheduler: PipeScheduler.Inline, writerScheduler: PipeScheduler.Inline, useSynchronizationContext: false,
System.IO.Pipelines (1)
System\IO\Pipelines\PipeOptions.cs (1)
16public static PipeOptions Default { get; } = new PipeOptions();