2 types derived from PipeScheduler
System.IO.Pipelines (2)
System\IO\Pipelines\InlineScheduler.cs (1)
6
internal sealed class InlineScheduler :
PipeScheduler
System\IO\Pipelines\ThreadPoolScheduler.netcoreapp.cs (1)
9
internal sealed class ThreadPoolScheduler :
PipeScheduler
42 references to PipeScheduler
Microsoft.AspNetCore.Http.Connections (2)
HttpConnectionDispatcherOptions.cs (2)
140
internal PipeOptions TransportPipeOptions => _transportPipeOptions ??= new PipeOptions(pauseWriterThreshold: TransportMaxBufferSize, resumeWriterThreshold: TransportMaxBufferSize / 2, readerScheduler:
PipeScheduler
.ThreadPool, useSynchronizationContext: false);
142
internal PipeOptions AppPipeOptions => _appPipeOptions ??= new PipeOptions(pauseWriterThreshold: ApplicationMaxBufferSize, resumeWriterThreshold: ApplicationMaxBufferSize / 2, readerScheduler:
PipeScheduler
.ThreadPool, useSynchronizationContext: false);
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
552
writerScheduler:
PipeScheduler
.Inline,
Internal\Http2\Http2Connection.cs (2)
195
_scheduleInline = context.ServiceContext.Scheduler ==
PipeScheduler
.Inline;
1884
writerScheduler:
PipeScheduler
.Inline,
Internal\Http2\Http2FrameWriter.cs (1)
133
_scheduleInline = serviceContext.Scheduler ==
PipeScheduler
.Inline;
Internal\Http2\Http2OutputProducer.cs (3)
66
var scheduleInline = context.ServiceContext.Scheduler ==
PipeScheduler
.Inline;
766
readerScheduler:
PipeScheduler
.Inline,
767
writerScheduler:
PipeScheduler
.ThreadPool,
Internal\Http2\Http2Stream.cs (1)
650
writerScheduler:
PipeScheduler
.Inline,
Internal\Http3\Http3OutputProducer.cs (2)
479
readerScheduler:
PipeScheduler
.Inline,
480
writerScheduler:
PipeScheduler
.ThreadPool,
Internal\Http3\Http3Stream.cs (1)
1243
writerScheduler:
PipeScheduler
.Inline,
Internal\KestrelServerImpl.cs (1)
101
Scheduler =
PipeScheduler
.ThreadPool,
Internal\ServiceContext.cs (1)
20
public
PipeScheduler
Scheduler { get; set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicStreamContext.cs (4)
60
var inputOptions = new PipeOptions(MemoryPool,
PipeScheduler
.ThreadPool,
PipeScheduler
.Inline, maxReadBufferSize, maxReadBufferSize / 2, useSynchronizationContext: false);
61
var outputOptions = new PipeOptions(MemoryPool,
PipeScheduler
.Inline,
PipeScheduler
.ThreadPool, maxWriteBufferSize, maxWriteBufferSize / 2, useSynchronizationContext: false);
System.IO.Pipelines (23)
System\IO\Pipelines\Pipe.cs (5)
43
private
PipeScheduler
ReaderScheduler => _options.ReaderScheduler;
44
private
PipeScheduler
WriterScheduler => _options.WriterScheduler;
800
private static void ScheduleCallbacks(
PipeScheduler
scheduler, PipeCompletionCallbacks completionCallbacks)
808
private static void TrySchedule(
PipeScheduler
scheduler, in CompletionData completionData)
834
private static void ScheduleWithContext(
PipeScheduler
scheduler, in CompletionData completionData)
System\IO\Pipelines\PipeOptions.cs (12)
20
/// <param name="readerScheduler">The <see cref="System.IO.Pipelines.
PipeScheduler
" /> to be used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</param>
21
/// <param name="writerScheduler">The <see cref="System.IO.Pipelines.
PipeScheduler
" /> used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</param>
28
PipeScheduler
? readerScheduler = null,
29
PipeScheduler
? writerScheduler = null,
81
ReaderScheduler = readerScheduler ??
PipeScheduler
.ThreadPool;
82
WriterScheduler = writerScheduler ??
PipeScheduler
.ThreadPool;
104
/// <summary>Gets the <see cref="System.IO.Pipelines.
PipeScheduler
" /> used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</summary>
105
/// <value>A <see cref="System.IO.Pipelines.
PipeScheduler
" /> object used to execute <see cref="System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</value>
106
public
PipeScheduler
WriterScheduler { get; }
108
/// <summary>Gets the <see cref="System.IO.Pipelines.
PipeScheduler
" /> used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</summary>
109
/// <value>A <see cref="System.IO.Pipelines.
PipeScheduler
" /> that is used to execute <see cref="System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</value>
110
public
PipeScheduler
ReaderScheduler { get; }
System\IO\Pipelines\PipeScheduler.cs (6)
14
/// <summary>The <see cref="System.IO.Pipelines.
PipeScheduler
" /> implementation that queues callbacks to the thread pool.</summary>
15
/// <value>A <see cref="System.IO.Pipelines.
PipeScheduler
" /> instance that queues callbacks to the thread pool.</value>
16
public static
PipeScheduler
ThreadPool => s_threadPoolScheduler;
18
/// <summary>The <see cref="System.IO.Pipelines.
PipeScheduler
" /> implementation that runs callbacks inline.</summary>
19
/// <value>A <see cref="System.IO.Pipelines.
PipeScheduler
" /> instance that runs callbacks inline.</value>
20
public static
PipeScheduler
Inline => s_inlineScheduler;