4 implementations of Get
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
491TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
265TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
204TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
121public TFeature? Get<TFeature>()
167 references to Get
Aspire.Dashboard (4)
Authentication\AspirePolicyEvaluator.cs (1)
82return context.Features.Get<IAuthenticateResultFeature>()?.AuthenticateResult ?? DefaultAuthenticateResult(context);
Authentication\Connection\ConnectionTypeAuthenticationHandler.cs (1)
18var connectionTypeFeature = Context.Features.Get<IConnectionTypeFeature>();
Model\BrowserSecurityHeadersMiddleware.cs (1)
66var feature = context.Features.Get<IConnectionTypeFeature>();
Utils\GlobalizationHelpers.cs (1)
152var result = tempHttpContext.Features.Get<IRequestCultureFeature>()?.RequestCulture;
Aspire.Dashboard.Tests (1)
Integration\MockOpenIdAuthority.cs (1)
118var serverAddress = webHost.ServerFeatures.Get<IServerAddressesFeature>();
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
207var addressFeature = _app.Services.GetService<IServer>()?.Features.Get<IServerAddressesFeature>();
Binding.Http.IntegrationTests (1)
MtomBindingTestHelper.cs (1)
54context.Features.Get<IHttpMaxRequestBodySizeFeature>().MaxRequestBodySize = 5_368_709_120;
Microsoft.AspNetCore (1)
WebApplication.cs (1)
239var addresses = ServerFeatures.Get<IServerAddressesFeature>()?.Addresses;
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (1)
268var antiforgeryFeature = httpContext.Features.Get<IAntiforgeryFeature>();
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
61context.Features.Get<IRouteValuesFeature>()?.RouteValues = null!;
Microsoft.AspNetCore.Authentication (3)
AuthenticationHandler.cs (2)
54protected PathString OriginalPath => Context.Features.Get<IAuthenticationFeature>()?.OriginalPath ?? Request.Path; 59protected PathString OriginalPathBase => Context.Features.Get<IAuthenticationFeature>()?.OriginalPathBase ?? Request.PathBase;
RequestPathBaseCookieBuilder.cs (1)
28var originalPathBase = context.Features.Get<IAuthenticationFeature>()?.OriginalPathBase ?? context.Request.PathBase;
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
490var binding = Context.Features.Get<ITlsTokenBindingFeature>()?.GetProvidedTokenBindingId();
Microsoft.AspNetCore.Authorization.Policy (2)
AuthorizationMiddleware.cs (1)
160if (context.Features.Get<IAuthenticateResultFeature>() is IAuthenticateResultFeature authenticateResultFeature)
PolicyEvaluator.cs (1)
71return context.Features.Get<IAuthenticateResultFeature>()?.AuthenticateResult ?? DefaultAuthenticateResult(context);
Microsoft.AspNetCore.Components.Endpoints (9)
RazorComponentEndpointInvoker.cs (6)
46var isErrorHandler = context.Features.Get<IExceptionHandlerFeature>() is not null; 47var hasStatusCodePage = context.Features.Get<IStatusCodePagesFeature>() is not null; 48var isReExecuted = context.Features.Get<IStatusCodeReExecuteFeature>() is not null; 49var httpActivityContext = context.Features.Get<IHttpActivityFeature>()?.Activity.Context ?? default; 206context.Features.Get<IExceptionHandlerFeature>() == null; 228if (context.Features.Get<IAntiforgeryValidationFeature>() is { } antiForgeryValidationFeature)
Results\RazorComponentResultExecutor.cs (2)
50var isErrorHandler = httpContext.Features.Get<IExceptionHandlerFeature>() is not null; 51var isReExecuted = httpContext.Features.Get<IStatusCodeReExecuteFeature>() is not null;
SessionCascadingValueSupplier.cs (1)
65internal ISession? GetSession() => _httpContext?.Features.Get<ISessionFeature>()?.Session;
Microsoft.AspNetCore.Components.Server (3)
ComponentHub.cs (2)
144var httpActivityContext = Context.GetHttpContext().Features.Get<IHttpActivityFeature>()?.Activity.Context ?? default; 392var httpActivityContext = Context.GetHttpContext().Features.Get<IHttpActivityFeature>()?.Activity.Context ?? default;
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
99var currentFeature = ctx.Features.Get<IHttpWebSocketFeature>();
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionContext.cs (1)
29Features.Get<IConnectionLifetimeFeature>()?.Abort();
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyMiddleware.cs (1)
65var feature = context.Features.Get<IResponseCookiesFeature>() ?? new ResponseCookiesFeature(context.Features);
Microsoft.AspNetCore.Diagnostics (6)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
93RouteValues = httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues 266routeValues: httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues
DiagnosticsTelemetry.cs (1)
16if (context.Features.Get<IHttpMetricsTagsFeature>() is { } tagsFeature)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
160RouteValues = context.Features.Get<IRouteValuesFeature>()?.RouteValues
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
61context.Features.Get<IRouteValuesFeature>()?.RouteValues = null!;
StatusCodePage\StatusCodePagesExtensions.cs (1)
230var routeValuesFeature = context.HttpContext.Features.Get<IRouteValuesFeature>();
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingHttpRequestExtensions.cs (1)
25var feature = context.Features.Get<HeaderParsingFeature>();
Microsoft.AspNetCore.Hosting (4)
GenericHost\GenericWebHostService.cs (1)
66var serverAddressesFeature = Server.Features.Get<IServerAddressesFeature>();
Internal\WebHost.cs (1)
262var serverAddressesFeature = Server.Features?.Get<IServerAddressesFeature>();
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
61context.Features.Get<IRouteValuesFeature>()?.RouteValues = null!;
WebHostExtensions.cs (1)
122var serverAddresses = host.ServerFeatures.Get<IServerAddressesFeature>()?.Addresses;
Microsoft.AspNetCore.Http (6)
Features\FormFeature.cs (1)
364var hasInvalidToken = _request.HttpContext.Features.Get<IAntiforgeryValidationFeature>() is { IsValid: false };
Internal\DefaultConnectionInfo.cs (1)
16private static readonly Func<IFeatureCollection, IConnectionLifetimeNotificationFeature> _newConnectionLifetime = f => new DefaultConnectionLifetimeNotificationFeature(f.Get<IHttpResponseFeature>());
Internal\ResponseCookies.cs (2)
53var services = _features.Get<IServiceProvidersFeature>()?.RequestServices; 77var services = _features.Get<IServiceProvidersFeature>()?.RequestServices;
RequestFormReaderExtensions.cs (1)
33var formFeature = features.Get<IFormFeature>();
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
86return response.HttpContext.Features.Get<IHttpResponseFeature>()?.ReasonPhrase ?? reasonPhrase;
Microsoft.AspNetCore.Http.Abstractions (11)
Extensions\RequestTrailerExtensions.cs (3)
32return request.HttpContext.Features.Get<IHttpRequestTrailersFeature>() != null; 43return request.HttpContext.Features.Get<IHttpRequestTrailersFeature>()?.Available == true; 55var feature = request.HttpContext.Features.Get<IHttpRequestTrailersFeature>();
Extensions\ResponseTrailerExtensions.cs (2)
33var feature = response.HttpContext.Features.Get<IHttpResponseTrailersFeature>(); 46var feature = response.HttpContext.Features.Get<IHttpResponseTrailersFeature>();
HttpContext.cs (1)
102public ISession? Session => _context.Features.Get<ISessionFeature>()?.Session;
HttpRequest.cs (1)
178public IFormCollection? Form => _request.HttpContext.Features.Get<IFormFeature>()?.Form;
HttpResponse.cs (1)
173var feature = _response.HttpContext.Features.Get<IHttpResponseTrailersFeature>();
Routing\EndpointHttpContextExtensions.cs (2)
26return context.Features.Get<IEndpointFeature>()?.Endpoint; 38var feature = context.Features.Get<IEndpointFeature>();
src\aspnetcore\src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
86return response.HttpContext.Features.Get<IHttpResponseFeature>()?.ReasonPhrase ?? reasonPhrase;
Microsoft.AspNetCore.Http.Connections (11)
HttpConnectionContextExtensions.cs (1)
25return connection.Features.Get<IHttpContextFeature>()?.HttpContext;
Internal\HttpConnectionContext.cs (1)
426context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout();
Internal\HttpConnectionDispatcher.cs (7)
125context.Features.Get<IHttpActivityFeature>()?.Activity.AddTag("http.long_running", "true"); 244context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout(); 445return features.Get<IHttpWebSocketFeature>() != null; 604connection.Features.Set(context.Features.Get<IHttpConnectionFeature>()); 608connection.Features.Set(context.Features.Get<IConnectionEndPointFeature>()); 669var authenticateResultFeature = context.Features.Get<IAuthenticateResultFeature>(); 738var existingConnectionFeature = context.Features.Get<IHttpConnectionFeature>();
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
24var endpointFeature = features.Get<IConnectionEndPointFeature>(); 45var localEndpoint = connectionContext.Features.Get<IConnectionEndPointFeature>()?.LocalEndPoint
Microsoft.AspNetCore.Http.Extensions (4)
HttpContextServerVariableExtensions.cs (1)
27var feature = context.Features.Get<IServerVariablesFeature>();
RequestDelegateFactory.cs (3)
1395var feature = httpContext.Features.Get<IHttpRequestBodyDetectionFeature>(); 1536var feature = httpContext.Features.Get<IHttpRequestBodyDetectionFeature>(); 1545if (httpContext.Features.Get<IAntiforgeryValidationFeature>() is { IsValid: false } antiforgeryValidationFeature)
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingMiddleware.cs (2)
194originalUpgradeFeature = context.Features.Get<IHttpUpgradeFeature>(); 208originalBodyFeature = context.Features.Get<IHttpResponseBodyFeature>()!;
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionBuilderExtensions.cs (1)
23var serverAddressFeature = app.ServerFeatures.Get<IServerAddressesFeature>();
Microsoft.AspNetCore.Identity (1)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (1)
1398var feature = httpContext.Features.Get<Microsoft.AspNetCore.Http.Features.IHttpRequestBodyDetectionFeature>();
Microsoft.AspNetCore.Mvc.Core (9)
Filters\DisableRequestSizeLimitFilter.cs (1)
43var maxRequestBodySizeFeature = context.HttpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Filters\OutputCacheFilter.cs (1)
39var outputCachingFeature = context.HttpContext.Features.Get<IOutputCacheFeature>();
Filters\RequestFormLimitsFilter.cs (1)
35var formFeature = features.Get<IFormFeature>();
Filters\RequestSizeLimitFilter.cs (1)
45var maxRequestBodySizeFeature = context.HttpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Filters\ResponseCacheFilterExecutor.cs (1)
83var responseCachingFeature = context.HttpContext.Features.Get<IResponseCachingFeature>();
Formatters\InputFormatter.cs (1)
96var canHaveBody = context.HttpContext.Features.Get<IHttpRequestBodyDetectionFeature>()?.CanHaveBody;
ModelBinding\Binders\BodyModelBinder.cs (1)
135var hasBody = httpContext.Features.Get<IHttpRequestBodyDetectionFeature>()?.CanHaveBody;
Routing\ControllerLinkGeneratorExtensions.cs (1)
222return httpContext?.Features?.Get<IRouteValuesFeature>()?.RouteValues;
Routing\PageLinkGeneratorExtensions.cs (1)
222return httpContext?.Features.Get<IRouteValuesFeature>()?.RouteValues;
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageResultExecutor.cs (1)
99var viewDataValuesProvider = pageContext.HttpContext.Features.Get<IViewDataValuesProviderFeature>();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
21var antiforgeryValidationFeature = context.HttpContext.Features.Get<IAntiforgeryValidationFeature>();
SkipStatusCodePagesAttribute.cs (1)
27context.HttpContext.Features.Get<IStatusCodePagesFeature>()?.Enabled = false;
ViewComponentResultExecutor.cs (1)
138var viewDataValuesProvider = viewContext.HttpContext.Features.Get<IViewDataValuesProviderFeature>();
ViewExecutor.cs (1)
235var viewDataValuesProvider = viewContext.HttpContext.Features.Get<IViewDataValuesProviderFeature>();
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheMiddleware.cs (1)
485if (context.HttpContext.Features.Get<IOutputCacheFeature>() != null)
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionMiddleware.cs (1)
63?? context.Features.Get<IHttpMaxRequestBodySizeFeature>()?.MaxRequestBodySize;
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (2)
274var varyQueryKeys = new StringValues(context.HttpContext.Features.Get<IResponseCachingFeature>()?.VaryByQueryKeys); 431if (context.Features.Get<IResponseCachingFeature>() != null)
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionMiddleware.cs (2)
56var originalBodyFeature = context.Features.Get<IHttpResponseBodyFeature>(); 57var originalCompressionFeature = context.Features.Get<IHttpsCompressionFeature>();
ResponseCompressionProvider.cs (1)
166var httpsMode = context.Features.Get<IHttpsCompressionFeature>()?.Mode ?? HttpsCompressionMode.Default;
Microsoft.AspNetCore.Rewrite (3)
PatternSegments\ServerProtocolSegment.cs (1)
12return context.HttpContext.Features.Get<IHttpRequestFeature>()?.Protocol;
RewriteMiddleware.cs (1)
80context.Features.Get<IRouteValuesFeature>()?.RouteValues = null!;
UrlActions\CustomResponseAction.cs (1)
34context.HttpContext.Features.Get<IHttpBodyControlFeature>()?.AllowSynchronousIO = true;
Microsoft.AspNetCore.Routing (3)
DefaultLinkGenerator.cs (1)
319return httpContext?.Features.Get<IRouteValuesFeature>()?.RouteValues;
EndpointRoutingMiddleware.cs (1)
311var maxRequestBodySizeFeature = context.Features.Get<IHttpMaxRequestBodySizeFeature>();
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
61context.Features.Get<IRouteValuesFeature>()?.RouteValues = null!;
Microsoft.AspNetCore.Routing.Abstractions (2)
RoutingHttpContextExtensions.cs (2)
25var routingFeature = httpContext.Features.Get<IRoutingFeature>(); 41return httpContext.Features.Get<IRouteValuesFeature>()?.RouteValues[key];
Microsoft.AspNetCore.Server.IISIntegration (2)
AuthenticationHandler.cs (1)
52_user = context.Features.Get<WindowsPrincipal>(); // See IISMiddleware
IISMiddleware.cs (1)
128var bodySizeFeature = httpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
Microsoft.AspNetCore.Server.Kestrel.Core (28)
Internal\Http\Http1Connection.cs (1)
1055if (ConnectionFeatures.Get<ITlsHandshakeFeature>() == null)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
281ConnectionFeatures.Get<IDecrementConcurrentConnectionCountFeature>()?.ReleaseConnection();
Internal\Http\HttpProtocol.Generated.cs (1)
645feature = ConnectionFeatures.Get<TFeature>();
Internal\Http2\Http2Connection.cs (4)
164_metricsTagsFeature = context.ConnectionFeatures.Get<IConnectionMetricsTagsFeature>(); 508var tlsFeature = ConnectionFeatures.Get<ITlsHandshakeFeature>(); 550if (ConnectionFeatures.Get<ITlsHandshakeFeature>() != null) 1127_context.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Internal\Http3\Http3Connection.cs (3)
383var streamDirectionFeature = streamContext.Features.Get<IStreamDirectionFeature>(); 384var streamIdFeature = streamContext.Features.Get<IStreamIdFeature>(); 612var persistentStateFeature = streamContext.Features.Get<IPersistentStateFeature>();
Internal\Http3\Http3ControlStream.cs (1)
434_context.ConnectionContext.Features.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Internal\HttpConnection.cs (6)
59connectionMetricsTagsFeature = _context.ConnectionFeatures.Get<IConnectionMetricsTagsFeature>(); 100var connectionHeartbeatFeature = _context.ConnectionFeatures.Get<IConnectionHeartbeatFeature>(); 101var connectionLifetimeNotificationFeature = _context.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>(); 138if (_context.ConnectionContext.Features.Get<IConnectionMetricsTagsFeature>() is { } metricsTags) 215var hasTls = _context.ConnectionFeatures.Get<ITlsConnectionFeature>() != null; 216var applicationProtocol = _context.ConnectionFeatures.Get<ITlsApplicationProtocolFeature>()?.ApplicationProtocol
Internal\Infrastructure\TransportConnectionManager.cs (1)
82connection.TransportConnection.Features.Get<IConnectionMetricsContextFeature>()?.MetricsContext,
Internal\TlsConnectionFeature.cs (1)
172_context.Features.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Middleware\HttpConnectionMiddleware.cs (2)
30var memoryPoolFeature = connectionContext.Features.Get<IMemoryPoolFeature>(); 31var protocols = connectionContext.Features.Get<HttpProtocolsFeature>()?.HttpProtocols ?? _endpointDefaultProtocols;
Middleware\HttpMultiplexedConnectionMiddleware.cs (2)
30var memoryPoolFeature = connectionContext.Features.Get<IMemoryPoolFeature>(); 47if (connectionContext.Features.Get<IConnectionMetricsTagsFeature>() is { } metricsTags)
Middleware\HttpsConnectionMiddleware.cs (3)
147if (context.Features.Get<ITlsConnectionFeature>() != null) 155context.Features.Get<IMemoryPoolFeature>()?.MemoryPool ?? MemoryPool<byte>.Shared); 168var metricsTagsFeature = context.Features.Get<IConnectionMetricsTagsFeature>();
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
24var endpointFeature = features.Get<IConnectionEndPointFeature>(); 45var localEndpoint = connectionContext.Features.Get<IConnectionEndPointFeature>()?.LocalEndPoint
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicConnectionContext.cs (2)
214var streamDirectionFeature = features?.Get<IStreamDirectionFeature>(); 254var heartbeatFeature = Features.Get<IConnectionHeartbeatFeature>();
QuicTransportFactory.cs (1)
42var tlsConnectionOptions = features?.Get<TlsConnectionCallbackOptions>();
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
335feature = MultiplexedConnectionFeatures.Get<TFeature>();
Microsoft.AspNetCore.SignalR (2)
GetHttpContextExtensions.cs (2)
22return connection.Features.Get<IHttpContextFeature>()?.HttpContext; 33return connection.Features.Get<IHttpContextFeature>()?.HttpContext;
Microsoft.AspNetCore.SignalR.Core (10)
HubConnectionContext.cs (8)
84if (connectionContext.Features.Get<IConnectionLifetimeNotificationFeature>() is IConnectionLifetimeNotificationFeature lifetimeNotification) 139_user = Features.Get<IConnectionUserFeature>()?.User ?? new ClaimsPrincipal(); 500if (_useStatefulReconnect && _connectionContext.Features.Get<IStatefulReconnectFeature>() is IStatefulReconnectFeature feature) 600var transferFormatFeature = Features.Get<ITransferFormatFeature>(); 618if (Features.Get<IConnectionInherentKeepAliveFeature>()?.HasInherentKeepAlive != true) 621Features.Get<IConnectionHeartbeatFeature>()?.OnHeartbeat(state => ((HubConnectionContext)state).KeepAliveTick(), this); 625if (_connectionContext.Features.Get<IStatefulReconnectFeature>() is IStatefulReconnectFeature feature) 738Features.Get<IConnectionHeartbeatFeature>()?.OnHeartbeat(state => ((HubConnectionContext)state).CheckClientTimeout(), this);
src\aspnetcore\src\Shared\ConnectionEndpointTags.cs (2)
24var endpointFeature = features.Get<IConnectionEndPointFeature>(); 45var localEndpoint = connectionContext.Features.Get<IConnectionEndPointFeature>()?.LocalEndPoint
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
410_context.Features.Get<IHttpsCompressionFeature>()?.Mode = _options.HttpsCompression;
Microsoft.AspNetCore.Testing (1)
ServiceFakesHostExtensions.cs (1)
70var feature = server.Features.Get<IServerAddressesFeature>();
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (1)
49var originalBodyFeature = context.Features.Get<IHttpResponseBodyFeature>();
Microsoft.AspNetCore.WebSockets (4)
WebSocketMiddleware.cs (4)
59var upgradeFeature = context.Features.Get<IHttpUpgradeFeature>(); 60var connectFeature = context.Features.Get<IHttpExtendedConnectFeature>(); 61if ((upgradeFeature != null || connectFeature != null) && context.Features.Get<IHttpWebSocketFeature>() == null) 211_context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout();
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
64.Get<IServerAddressesFeature>()?
Microsoft.Extensions.Features (2)
FeatureCollectionExtensions.cs (1)
26return featureCollection.Get<TFeature>() ?? throw new InvalidOperationException($"Feature '{typeof(TFeature)}' is not present.");
FeatureReferences.cs (1)
120cached = Collection.Get<TFeature>();
Microsoft.Extensions.ServiceDiscovery (3)
Http\ResolvingHttpClientHandler.cs (1)
27request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
Http\ResolvingHttpDelegatingHandler.cs (1)
48request.Headers.Host ??= result.Features.Get<IHostNameFeature>()?.HostName;
ServiceEndpointWatcher.Log.cs (1)
30if (ep.Features.Get<IServiceEndpointProvider>() is { } provider)
Stress.ApiService (1)
Program.cs (1)
875context.Features.Get<Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature>()?.DisableBuffering();
TestProject.ServiceA (1)
Program.cs (1)
15app.MapGet("/urls", (IServiceProvider sp) => sp.GetService<IServer>()?.Features?.Get<IServerAddressesFeature>()?.Addresses);