2 implementations of ServerFeatures
Microsoft.AspNetCore.Hosting (1)
Internal\WebHost.cs (1)
86public IFeatureCollection ServerFeatures
Microsoft.AspNetCore.Hosting.Tests (1)
Fakes\GenericWebHost.cs (1)
20public IFeatureCollection ServerFeatures => Services.GetRequiredService<IServer>().Features;
16 references to ServerFeatures
Aspire.Dashboard.Tests (1)
Integration\MockOpenIdAuthority.cs (1)
118var serverAddress = webHost.ServerFeatures.Get<IServerAddressesFeature>();
Interop.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
26return host.ServerFeatures.Get<IServerAddressesFeature>().Addresses
Microsoft.AspNetCore.Hosting (1)
WebHostExtensions.cs (1)
122var serverAddresses = host.ServerFeatures.Get<IServerAddressesFeature>()?.Addresses;
Microsoft.AspNetCore.Hosting.Tests (6)
WebHostTests.cs (6)
43var serverAddressesFeature = host.ServerFeatures.Get<IServerAddressesFeature>(); 62var serverAddressFeature = host.ServerFeatures.Get<IServerAddressesFeature>(); 81var serverAddressFeature = host.ServerFeatures.Get<IServerAddressesFeature>(); 101var serverAddressFeature = host.ServerFeatures.Get<IServerAddressesFeature>(); 113var serverAddressesFeature = host.ServerFeatures.Get<IServerAddressesFeature>(); 132Assert.True(host.ServerFeatures.Get<IServerAddressesFeature>().PreferHostingUrls);
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
HttpsConfigurationTests.cs (2)
42Assert.Single(host.ServerFeatures.Get<IServerAddressesFeature>().Addresses, address); 71Assert.Equal(new[] { httpAddress, httpsAddress }, host.ServerFeatures.Get<IServerAddressesFeature>().Addresses);
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
26return host.ServerFeatures.Get<IServerAddressesFeature>().Addresses
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IWebHostPortExtensions.cs (1)
26return host.ServerFeatures.Get<IServerAddressesFeature>().Addresses
StartRequestDelegateUrlApp (1)
Program.cs (1)
30var addresses = host.ServerFeatures.Get<IServerAddressesFeature>().Addresses;
StartRouteBuilderUrlApp (1)
Program.cs (1)
31var addresses = host.ServerFeatures.Get<IServerAddressesFeature>().Addresses;
StartWithIApplicationBuilderUrlApp (1)
Program.cs (1)
34var addresses = host.ServerFeatures.Get<IServerAddressesFeature>().Addresses;