37 references to 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.CodeStyle (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
260var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
180_task = task.Preserve();
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
260var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
180_task = task.Preserve();
Microsoft.CodeAnalysis.Threading.Package (2)
AsyncBatchingWorkQueue`2.cs (1)
260var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
ValueTaskExtensions.cs (1)
180_task = task.Preserve();
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
260var batchResultTask = _processBatchAsync(nextBatch, batchCancellationToken).Preserve();
src\Dependencies\Threading\ValueTaskExtensions.cs (1)
180_task = task.Preserve();
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
UtilityTest\SpecializedTasksTests.cs (15)
94var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 116var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 137var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 167var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 193var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 224var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 250var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 284var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 317var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 351var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 398var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 426var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 478var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 509var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 549var 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();
System.Private.Xml (1)
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
2903ValueTask<(int, int, int, bool)> parseTextTask = ParseTextAsync(orChars).Preserve();