1 override of CompleteAsync
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
165public override Task CompleteAsync() => HttpResponseBodyFeature.CompleteAsync();
53 references to CompleteAsync
InMemory.FunctionalTests (34)
Http2\Http2StreamTests.cs (16)
4744await context.Response.CompleteAsync().DefaultTimeout(); 4799await context.Response.CompleteAsync().DefaultTimeout(); 4800await context.Response.CompleteAsync().DefaultTimeout(); // Can be called twice, no-ops 4867var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout()); 4923await context.Response.CompleteAsync().DefaultTimeout(); 4924await context.Response.CompleteAsync().DefaultTimeout(); // Can be called twice, no-ops 4984await context.Response.CompleteAsync().DefaultTimeout(); 5045await context.Response.CompleteAsync().DefaultTimeout(); 5104await context.Response.CompleteAsync(); 5164await context.Response.CompleteAsync().DefaultTimeout(); 5240await context.Response.CompleteAsync().DefaultTimeout(); 5315var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout()); 5455await context.Response.CompleteAsync().DefaultTimeout(); 5537await context.Response.CompleteAsync().DefaultTimeout(); 5619await context.Response.CompleteAsync().DefaultTimeout(); 5703await context.Response.CompleteAsync().DefaultTimeout();
Http3\Http3StreamTests.cs (17)
1140await context.Response.CompleteAsync().DefaultTimeout(); 1188await context.Response.CompleteAsync().DefaultTimeout(); 1189await context.Response.CompleteAsync().DefaultTimeout(); // Can be called twice, no-ops 1242var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout()); 1291await context.Response.CompleteAsync().DefaultTimeout(); 1292await context.Response.CompleteAsync().DefaultTimeout(); // Can be called twice, no-ops 1339await context.Response.CompleteAsync().DefaultTimeout(); 1393await context.Response.CompleteAsync().DefaultTimeout(); 1438await context.Response.CompleteAsync(); 1491await context.Response.CompleteAsync().DefaultTimeout(); 1548await context.Response.CompleteAsync().DefaultTimeout(); 1604var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.CompleteAsync().DefaultTimeout()); 1718await context.Response.CompleteAsync().DefaultTimeout(); 1779await context.Response.CompleteAsync().DefaultTimeout(); 1841await context.Response.CompleteAsync().DefaultTimeout(); 1906await context.Response.CompleteAsync().DefaultTimeout(); 2999await context.Response.CompleteAsync();
RequestTargetProcessingTests.cs (1)
106await context.Response.CompleteAsync();
Interop.FunctionalTests (7)
Http3\Http3RequestTests.cs (1)
1529await context.Response.CompleteAsync();
HttpClientHttp2InteropTests.cs (6)
341await context.Response.CompleteAsync().DefaultTimeout(); 412await context.Response.CompleteAsync().DefaultTimeout(); 645await context.Response.CompleteAsync(); 674await context.Response.CompleteAsync(); 999await context.Response.CompleteAsync(); 1472await context.Response.CompleteAsync().DefaultTimeout();
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
89await _httpContext.Response.CompleteAsync();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (1)
180await httpContextMock.Response.CompleteAsync();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Http2Tests.cs (2)
804await httpContext.Response.CompleteAsync(); 955await httpContext.Response.CompleteAsync();
ResponseBodyTests.cs (2)
54await httpContext.Response.CompleteAsync(); 78await httpContext.Response.CompleteAsync();
ResponseTrailersTests.cs (2)
231await httpContext.Response.CompleteAsync(); 253await httpContext.Response.CompleteAsync();
Microsoft.AspNetCore.TestHost.Tests (4)
ResponseBodyTests.cs (4)
57await httpContext.Response.CompleteAsync(); 73await httpContext.Response.CompleteAsync(); 93await httpContext.Response.CompleteAsync(); 112await httpContext.Response.CompleteAsync();