3 implementations of IHttpRequestTimeoutFeature
Microsoft.AspNetCore.Http (1)
Timeouts\HttpRequestTimeoutFeature.cs (1)
6internal sealed class HttpRequestTimeoutFeature : IHttpRequestTimeoutFeature
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
4057internal sealed class HttpRequestTimeoutFeature : IHttpRequestTimeoutFeature
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
849internal sealed class HttpRequestTimeoutFeature : IHttpRequestTimeoutFeature
27 references to IHttpRequestTimeoutFeature
Microsoft.AspNetCore.Http (2)
Timeouts\RequestTimeoutsMiddleware.cs (2)
104context.Features.Set<IHttpRequestTimeoutFeature>(feature); 133context.Features.Set<IHttpRequestTimeoutFeature>(null);
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
426context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout();
Internal\HttpConnectionDispatcher.cs (1)
243context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout();
Microsoft.AspNetCore.Http.Connections.Tests (9)
HttpConnectionDispatcherTests.cs (9)
3521c.Features.Set<IHttpRequestTimeoutFeature>(new HttpRequestTimeoutFeature()); 3522Assert.True(((HttpRequestTimeoutFeature)c.Features.Get<IHttpRequestTimeoutFeature>()).Enabled); 3556var feature = Assert.IsType<HttpRequestTimeoutFeature>(context.Features.Get<IHttpContextFeature>()?.HttpContext.Features.Get<IHttpRequestTimeoutFeature>()); 3579context.Features.Set<IHttpRequestTimeoutFeature>(new HttpRequestTimeoutFeature()); 3580Assert.True(((HttpRequestTimeoutFeature)context.Features.Get<IHttpRequestTimeoutFeature>()).Enabled); 3584Assert.False(((HttpRequestTimeoutFeature)context.Features.Get<IHttpRequestTimeoutFeature>()).Enabled); 3586context.Features.Set<IHttpRequestTimeoutFeature>(new HttpRequestTimeoutFeature()); 3587Assert.True(((HttpRequestTimeoutFeature)context.Features.Get<IHttpRequestTimeoutFeature>()).Enabled); 3590Assert.False(((HttpRequestTimeoutFeature)context.Features.Get<IHttpRequestTimeoutFeature>()).Enabled);
Microsoft.AspNetCore.Http.Tests (2)
Timeouts\RequestTimeoutsMiddlewareTests.cs (2)
325var timeoutFeature = context.Features.Get<IHttpRequestTimeoutFeature>();
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
72internal protected IHttpRequestTimeoutFeature? _currentIHttpRequestTimeoutFeature; 292else if (key == typeof(IHttpRequestTimeoutFeature)) 444else if (key == typeof(IHttpRequestTimeoutFeature)) 446_currentIHttpRequestTimeoutFeature = (IHttpRequestTimeoutFeature?)value; 598else if (typeof(TFeature) == typeof(IHttpRequestTimeoutFeature)) 600feature = Unsafe.As<IHttpRequestTimeoutFeature?, TFeature?>(ref _currentIHttpRequestTimeoutFeature); 758else if (typeof(TFeature) == typeof(IHttpRequestTimeoutFeature)) 760_currentIHttpRequestTimeoutFeature = Unsafe.As<TFeature?, IHttpRequestTimeoutFeature?>(ref feature); 908yield return new KeyValuePair<Type, object>(typeof(IHttpRequestTimeoutFeature), _currentIHttpRequestTimeoutFeature);
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
211_context.Features.Get<IHttpRequestTimeoutFeature>()?.DisableTimeout();
Microsoft.AspNetCore.WebSockets.Tests (2)
WebSocketMiddlewareTests.cs (2)
781context.Features.Set<IHttpRequestTimeoutFeature>(new HttpRequestTimeoutFeature()); 783var feature = Assert.IsType<HttpRequestTimeoutFeature>(context.Features.Get<IHttpRequestTimeoutFeature>());