61 references to Preserve
GenerateDocumentationAndConfigFiles (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Metrics (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Metrics.Legacy (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http2\FlowControl\StreamInputFlowControl.cs (2)
73_ = _frameWriter.WriteWindowUpdateAsync(StreamId, streamWindowUpdateSize).Preserve(); 106_ = _frameWriter.WriteWindowUpdateAsync(0, connectionWindowUpdateSize).Preserve();
Internal\Http2\Http2Connection.cs (3)
252_frameWriter.WriteGoAwayAsync(int.MaxValue, errorCode).Preserve(); 1507_frameWriter.WriteGoAwayAsync(int.MaxValue, Http2ErrorCode.NO_ERROR).Preserve(); 1518_frameWriter.WriteGoAwayAsync(_highestOpenedStreamId, Http2ErrorCode.NO_ERROR).Preserve();
Internal\Http2\Http2Stream.cs (2)
171_ = _http2Output.WriteRstStreamAsync(Http2ErrorCode.NO_ERROR).Preserve(); 609_ = _http2Output.WriteRstStreamAsync(error).Preserve();
Internal\Http3\Http3Connection.cs (2)
194SendGoAwayAsync(GetCurrentGoAwayStreamId()).Preserve(); 706SendGoAwayAsync(VariableLengthIntegerHelper.EightByteLimit).Preserve();
Internal\Http3\Http3OutputProducer.cs (2)
54_dataWriteProcessingTask = ProcessDataWrites().Preserve(); 68_dataWriteProcessingTask = ProcessDataWrites().Preserve();
Microsoft.CodeAnalysis.Analyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.Threading.Package (2)
AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
UtilityTest\SpecializedTasksTests.cs (15)
95var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 117var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 138var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 168var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 194var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 225var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 251var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 285var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 318var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 352var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 399var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 427var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 479var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 510var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 550var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve();
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestBodyReader.cs (1)
65return ReadFromStreamWithTimeoutAsync(request, RequestReadTimeout, _requestReadLimit, cancellationToken).Preserve();
Logging\Internal\HttpResponseBodyReader.cs (1)
60return ReadFromStreamWithTimeoutAsync(response, ResponseReadTimeout, _responseReadLimit, cancellationToken).Preserve();
Roslyn.Diagnostics.Analyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
System.Private.Xml (1)
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
2903ValueTask<(int, int, int, bool)> parseTextTask = ParseTextAsync(orChars).Preserve();
Test.Utilities (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();
Text.Analyzers (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
258var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
182_task = task.Preserve();