13 references to WebSocketOptions
Microsoft.AspNetCore.SignalR (1)
SignalRDependencyInjectionExtensions.cs (1)
46
services.Configure<
WebSocketOptions
>(o => o.KeepAliveInterval = TimeSpan.Zero);
Microsoft.AspNetCore.WebSockets (9)
WebSocketMiddleware.cs (4)
24
private readonly
WebSocketOptions
_options;
35
public WebSocketMiddleware(RequestDelegate next, IOptions<
WebSocketOptions
> options, ILoggerFactory loggerFactory)
94
private readonly
WebSocketOptions
_options;
99
public 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" />.
42
public 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>
20
public static IServiceCollection AddWebSockets(this IServiceCollection services, Action<
WebSocketOptions
> configure)
Microsoft.AspNetCore.WebSockets.Tests (3)
AddWebSocketsTests.cs (2)
24
var
socketOptions = services.GetRequiredService<IOptions<
WebSocketOptions
>>().Value;
KestrelWebSocketHelpers.cs (1)
18
public static IAsyncDisposable CreateServer(ILoggerFactory loggerFactory, out int port, Func<HttpContext, Task> app, Action<
WebSocketOptions
> configure = null)