1 write to Options
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocket.cs (1)
21Options = WebSocketHandle.CreateDefaultOptions();
34 references to Options
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrClientWebSocketFactory.cs (4)
20webSocket.Options.Credentials = credentials; 23webSocket.Options.AddSubProtocol(settings.SubProtocol); 26webSocket.Options.KeepAliveInterval = settings.KeepAliveInterval; 30webSocket.Options.SetRequestHeader(header, headers[header]);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
112cws.Options.DangerousDeflateOptions = new WebSocketDeflateOptions();
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\WebSocketTests.cs (1)
112cws.Options.DangerousDeflateOptions = new WebSocketDeflateOptions();
Interop.FunctionalTests (6)
Http2WebSocketInteropTests.cs (6)
80wsClient.Options.HttpVersion = Version.Parse(clientVersion); 81wsClient.Options.HttpVersionPolicy = clientPolicy; 82wsClient.Options.CollectHttpResponseDetails = true; 144wsClient.Options.HttpVersion = Version.Parse("2.0"); 145wsClient.Options.HttpVersionPolicy = HttpVersionPolicy.RequestVersionExact; 146wsClient.Options.CollectHttpResponseDetails = true;
Microsoft.AspNetCore.Http.Connections.Client (11)
Internal\WebSocketsTransport.cs (11)
104webSocket.Options.SetRequestHeader("X-SignalR-User-Agent", Constants.UserAgentHeader.ToString()); 109webSocket.Options.SetRequestHeader("X-Requested-With", "XMLHttpRequest"); 124webSocket.Options.SetRequestHeader(header.Key, header.Value); 137webSocket.Options.Cookies = context.Options.Cookies; 142webSocket.Options.ClientCertificates.AddRange(context.Options.ClientCertificates); 147webSocket.Options.Credentials = context.Options.Credentials; 155var originalProxy = webSocket.Options.Proxy; 158webSocket.Options.Proxy = context.Options.Proxy; 163webSocket.Options.UseDefaultCredentials = context.Options.UseDefaultCredentials.Value; 174context.Options.WebSocketConfiguration?.Invoke(webSocket.Options); 257webSocket.Options.SetRequestHeader("Authorization", $"Bearer {accessToken}");
Microsoft.AspNetCore.Http.Connections.Tests (2)
MapConnectionHandlerTests.cs (2)
400client.Options.AddSubProtocol("protocol1"); 401client.Options.AddSubProtocol("protocol2");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
2698websocket.Options.SetRequestHeader("Authorization", $"Bearer {authHeader}");
Microsoft.AspNetCore.SpaServices.Extensions (2)
Proxying\SpaProxy.cs (2)
218client.Options.AddSubProtocol(protocol); 226client.Options.SetRequestHeader(headerEntry.Key, headerEntry.Value);
Microsoft.AspNetCore.WebSockets.Tests (4)
WebSocketCompressionMiddlewareTests.cs (1)
137client.Options.DangerousDeflateOptions = new WebSocketDeflateOptions()
WebSocketMiddlewareTests.cs (3)
46client.Options.AddSubProtocol("alpha"); 47client.Options.AddSubProtocol("bravo"); 48client.Options.AddSubProtocol("charlie");
System.Net.WebSockets.Client (2)
System\Net\WebSockets\ClientWebSocket.cs (2)
120Options.SetToReadOnly(); 130await _innerWebSocket.ConnectAsync(uri, invoker, cancellationToken, Options).ConfigureAwait(false);