2 instantiations of WebSocketOptions
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
108app.UseWebSockets(new WebSocketOptions()
Microsoft.AspNetCore.WebSockets.Tests (1)
AddWebSocketsTests.cs (1)
36Assert.Throws<ArgumentOutOfRangeException>(() => new WebSocketOptions() { KeepAliveTimeout = TimeSpan.FromMicroseconds(-1) });
13 references to WebSocketOptions
Microsoft.AspNetCore.SignalR (1)
SignalRDependencyInjectionExtensions.cs (1)
44services.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)
14/// 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)
25var 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)