1 write to options
System (1)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
48
options
= new ClientWebSocketOptions();
20 references to options
System (20)
net\System\Net\WebSockets\ClientWebSocket.cs (20)
56
public ClientWebSocketOptions Options { get { return
options
; } }
145
options
.SetToReadOnly();
170
options
.ReceiveBufferSize,
options
.SendBufferSize,
options
.KeepAliveInterval, false,
171
options
.GetOrCreateBuffer());
222
foreach (string key in
options
.RequestHeaders.Keys)
224
request.Headers.Add(key,
options
.RequestHeaders[key]);
228
if (
options
.RequestedSubProtocols.Count > 0)
231
string.Join(", ",
options
.RequestedSubProtocols));
235
if (
options
.UseDefaultCredentials)
239
else if (
options
.Credentials != null)
241
request.Credentials =
options
.Credentials;
245
if (
options
.InternalClientCertificates != null)
247
request.ClientCertificates =
options
.InternalClientCertificates;
250
request.Proxy =
options
.Proxy;
251
request.CookieContainer =
options
.Cookies;
300
if (!string.IsNullOrWhiteSpace(subProtocol) &&
options
.RequestedSubProtocols.Count > 0)
303
foreach (string requestedSubProtocol in
options
.RequestedSubProtocols)
314
string.Join(", ",
options
.RequestedSubProtocols), subProtocol));