13 references to WebSocketOptions
Microsoft.AspNetCore.SignalR (1)
SignalRDependencyInjectionExtensions.cs (1)
46services.Configure<WebSocketOptions>(o => o.KeepAliveInterval = TimeSpan.Zero);
Microsoft.AspNetCore.WebSockets (9)
WebSocketMiddleware.cs (4)
24private readonly WebSocketOptions _options; 35public WebSocketMiddleware(RequestDelegate next, IOptions<WebSocketOptions> options, ILoggerFactory loggerFactory) 94private readonly WebSocketOptions _options; 99public WebSocketHandshake(HttpContext context, IHttpUpgradeFeature? upgradeFeature, IHttpExtendedConnectFeature? connectFeature, WebSocketOptions options, ILogger logger)
WebSocketMiddlewareExtensions.cs (2)
37/// The <see cref="WebSocketOptions" /> to be used for the <see cref="WebSocketMiddleware" />. 42public static IApplicationBuilder UseWebSockets(this IApplicationBuilder app, WebSocketOptions options)
WebSocketOptions.cs (1)
12/// Constructs the <see cref="WebSocketOptions"/> class with default values.
WebSocketsDependencyInjectionExtensions.cs (2)
18/// <param name="configure">The configuration callback to setup <see cref="WebSocketOptions"/>.</param> 20public static IServiceCollection AddWebSockets(this IServiceCollection services, Action<WebSocketOptions> configure)
Microsoft.AspNetCore.WebSockets.Tests (3)
AddWebSocketsTests.cs (2)
24var socketOptions = services.GetRequiredService<IOptions<WebSocketOptions>>().Value;
KestrelWebSocketHelpers.cs (1)
18public static IAsyncDisposable CreateServer(ILoggerFactory loggerFactory, out int port, Func<HttpContext, Task> app, Action<WebSocketOptions> configure = null)