5 implementations of UpgradeAsync
Microsoft.AspNetCore.HttpLogging (1)
UpgradeFeatureLoggingDecorator.cs (1)
33public async Task<Stream> UpgradeAsync()
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
549async Task<Stream> IHttpUpgradeFeature.UpgradeAsync()
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
337async Task<Stream> IHttpUpgradeFeature.UpgradeAsync()
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
259async Task<Stream> IHttpUpgradeFeature.UpgradeAsync()
Microsoft.AspNetCore.TestHost (1)
UpgradeFeature.cs (1)
13public Task<Stream> UpgradeAsync()
44 references to UpgradeAsync
InMemory.FunctionalTests (19)
ConnectionLimitTests.cs (1)
62var stream = await feature.UpgradeAsync();
EventSourceTests.cs (1)
50await upgradeFeature.UpgradeAsync();
KeepAliveTimeoutTests.cs (1)
272using (var stream = await httpContext.Features.Get<IHttpUpgradeFeature>().UpgradeAsync())
KestrelMetricsTests.cs (1)
524await upgradeFeature.UpgradeAsync();
MaxRequestBodySizeTests.cs (1)
331var stream = await upgradeFeature.UpgradeAsync();
RequestTests.cs (4)
184var stream = await context.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1358var duplexStream = await upgradeFeature.UpgradeAsync(); 1600var duplexStream = await upgradeFeature.UpgradeAsync(); 1637using (var stream = await context.Features.Get<IHttpUpgradeFeature>().UpgradeAsync())
ResponseTests.cs (1)
2377var stream = await httpContext.Features.Get<IHttpUpgradeFeature>().UpgradeAsync();
UpgradeTests.cs (9)
29var stream = await feature.UpgradeAsync(); 74var stream = await feature.UpgradeAsync(); 124await feature.UpgradeAsync(); 128await feature.UpgradeAsync(); 277var stream = await feature.UpgradeAsync(); 315var stream = await feature.UpgradeAsync(); 359var duplexStream = await feature.UpgradeAsync(); 398var duplexStream = await upgradeFeature.UpgradeAsync(); 442await context.Features.Get<IHttpUpgradeFeature>().UpgradeAsync();
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (2)
101var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => upgradeFeature.UpgradeAsync()); 155Stream opaqueTransport = await upgradeFeature.UpgradeAsync();
Microsoft.AspNetCore.Http.Features (1)
IHttpMaxRequestBodySizeFeature.cs (1)
14/// or that <see cref="IHttpUpgradeFeature.UpgradeAsync"/> was called.
Microsoft.AspNetCore.HttpLogging (1)
UpgradeFeatureLoggingDecorator.cs (1)
35var upgradeStream = await _innerUpgradeFeature.UpgradeAsync();
Microsoft.AspNetCore.HttpLogging.Tests (12)
HttpLoggingMiddlewareTests.cs (12)
1208.Setup(m => m.UpgradeAsync()) 1220await c.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1258.Setup(m => m.UpgradeAsync()) 1270await c.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1312.Setup(m => m.UpgradeAsync()) 1324await c.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1355.Setup(m => m.UpgradeAsync()) 1367await c.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1415Record.Exception(() => upgradeFeatureMock.Verify(m => m.UpgradeAsync(), Times.Never))); 1433.Setup(m => m.UpgradeAsync()) 1448await c.Features.Get<IHttpUpgradeFeature>().UpgradeAsync(); 1471upgradeFeatureMock.Setup(m => m.UpgradeAsync()).ReturnsAsync(Stream.Null);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
OpaqueUpgradeTests.cs (6)
89await opaqueFeature.UpgradeAsync(); 116await opaqueFeature.UpgradeAsync(); 143var stream = await opaqueFeature.UpgradeAsync(); 176await opaqueFeature.UpgradeAsync(); 223var opaqueStream = await opaqueFeature.UpgradeAsync(); 317await opaqueFeature.UpgradeAsync();
Microsoft.AspNetCore.TestHost.Tests (2)
TestClientTests.cs (1)
1031await Assert.ThrowsAsync<NotSupportedException>(() => upgradeFeature.UpgradeAsync());
WebSocketClientTests.cs (1)
105await Assert.ThrowsAsync<NotSupportedException>(() => upgradeFeature.UpgradeAsync());
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
207opaqueTransport = await _upgradeFeature!.UpgradeAsync(); // Sets status code to 101