2 implementations of Features
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\KestrelServerImpl.cs (1)
113public IFeatureCollection Features { get; }
KestrelServer.cs (1)
45public IFeatureCollection Features => _innerKestrelServer.Features;
12 references to Features
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
207var addressFeature = _app.Services.GetService<IServer>()?.Features.Get<IServerAddressesFeature>();
Microsoft.AspNetCore (1)
WebApplication.cs (1)
77internal IFeatureCollection ServerFeatures => _host.Services.GetRequiredService<IServer>().Features;
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostService.cs (2)
66var serverAddressesFeature = Server.Features.Get<IServerAddressesFeature>(); 133var builder = ApplicationBuilderFactory.CreateBuilder(Server.Features);
Internal\WebHost.cs (3)
92return Server.Features; 211var builder = builderFactory.CreateBuilder(Server.Features); 262var serverAddressesFeature = Server.Features?.Get<IServerAddressesFeature>();
Microsoft.AspNetCore.Testing (1)
ServiceFakesHostExtensions.cs (1)
70var feature = server.Features.Get<IServerAddressesFeature>();
Microsoft.AspNetCore.Testing.Tests (2)
FakesExtensionsTests.cs (2)
197hostMock.Object.Services.GetRequiredService<IServer>().Features[typeof(IServerAddressesFeature)] = null; 244mockServer.Setup(x => x.Features).Returns(features);
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
63.Features
TestProject.ServiceA (1)
Program.cs (1)
15app.MapGet("/urls", (IServiceProvider sp) => sp.GetService<IServer>()?.Features?.Get<IServerAddressesFeature>()?.Addresses);