19 references to DrainAsync
InMemory.FunctionalTests (4)
BadHttpRequestTests.cs (3)
393await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 459await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener })) 534await using (var server = new TestServer(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
Http3\Http3StreamTests.cs (1)
1983await c.Request.Body.DrainAsync(default);
Kestrel.SampleApp (1)
ClientCertBufferingFeature.cs (1)
67await body.DrainAsync(cancellationToken);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
61await context.Request.Body.DrainAsync(default); 87await context.Request.Body.DrainAsync(default).ConfigureAwait(false);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
352await fs.DrainAsync(CancellationToken.None);
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
259await section.Body.DrainAsync(cancellationToken);
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1510await c.Request.Body.DrainAsync(default); 1579await c.Request.Body.DrainAsync(default);
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (2)
115await readStream.DrainAsync(CancellationToken.None); 134await readStream.DrainAsync(CancellationToken.None);
XmlSerializerInputFormatter.cs (2)
99await readStream.DrainAsync(CancellationToken.None); 118await readStream.DrainAsync(CancellationToken.None);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonInputFormatter.cs (2)
115await readStream.DrainAsync(CancellationToken.None); 134await readStream.DrainAsync(CancellationToken.None);
Microsoft.AspNetCore.WebUtilities (1)
MultipartReader.cs (1)
90await _currentStream.DrainAsync(cancellationToken);
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingReadStreamTests.cs (1)
314await stream.DrainAsync(default);