2 implementations of IHttpWebSocketFeature
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
169: IHttpWebSocketFeature
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
89private sealed class WebSocketHandshake : IHttpWebSocketFeature
21 references to IHttpWebSocketFeature
Microsoft.AspNetCore.Components.Server (4)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (4)
99var currentFeature = ctx.Features.Get<IHttpWebSocketFeature>(); 101ctx.Features.Set<IHttpWebSocketFeature>(new ServerComponentsSocketFeature(currentFeature!, ctx, configureConnection, disableCompression)); 165IHttpWebSocketFeature originalFeature,
Microsoft.AspNetCore.Http (3)
Internal\DefaultWebSocketManager.cs (3)
14private static readonly Func<IFeatureCollection, IHttpWebSocketFeature?> _nullWebSocketFeature = f => null; 42private IHttpWebSocketFeature WebSocketFeature => 80public IHttpWebSocketFeature? WebSockets;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
445return features.Get<IHttpWebSocketFeature>() != null;
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
71internal protected IHttpWebSocketFeature? _currentIHttpWebSocketFeature; 280else if (key == typeof(IHttpWebSocketFeature)) 432else if (key == typeof(IHttpWebSocketFeature)) 434_currentIHttpWebSocketFeature = (IHttpWebSocketFeature?)value; 586else if (typeof(TFeature) == typeof(IHttpWebSocketFeature)) 588feature = Unsafe.As<IHttpWebSocketFeature?, TFeature?>(ref _currentIHttpWebSocketFeature); 746else if (typeof(TFeature) == typeof(IHttpWebSocketFeature)) 748_currentIHttpWebSocketFeature = Unsafe.As<TFeature?, IHttpWebSocketFeature?>(ref feature); 896yield return new KeyValuePair<Type, object>(typeof(IHttpWebSocketFeature), _currentIHttpWebSocketFeature);
Microsoft.AspNetCore.WebSockets (4)
WebSocketMiddleware.cs (4)
18/// Enables accepting WebSocket requests by adding a <see cref="IHttpWebSocketFeature"/> 52/// sets the <see cref="IHttpWebSocketFeature"/> on the <see cref="HttpContext.Features"/>. 61if ((upgradeFeature != null || connectFeature != null) && context.Features.Get<IHttpWebSocketFeature>() == null) 64context.Features.Set<IHttpWebSocketFeature>(webSocketFeature);