31 references to WebSocketDefaults
System.ServiceModel (31)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (3)
378
WebSocketDefaults
.BufferSize,
440
CheckResponseHeader(response, HttpTransportDefaults.ConnectionHeader,
WebSocketDefaults
.WebSocketConnectionHeaderValue, true);
441
CheckResponseHeader(response, HttpTransportDefaults.UpgradeHeader,
WebSocketDefaults
.WebSocketUpgradeHeaderValue, true);
System\ServiceModel\Channels\WebSocketHelper.cs (7)
72
int effectiveMaxReceiveBufferSize = maxReceivedMessageSize <=
WebSocketDefaults
.BufferSize ? (int)maxReceivedMessageSize :
WebSocketDefaults
.BufferSize;
73
return Math.Max(
WebSocketDefaults
.MinReceiveBufferSize, effectiveMaxReceiveBufferSize);
209
if (runtimeSettings.MaxPendingConnections ==
WebSocketDefaults
.DefaultMaxPendingConnections)
211
runtimeSettings.MaxPendingConnections =
WebSocketDefaults
.MaxPendingConnectionsCpuCount;
373
int nativeSendBufferSize = isServerBuffer ?
WebSocketDefaults
.MinSendBufferSize :
WebSocketDefaults
.BufferSize;
System\ServiceModel\Channels\WebSocketMessageProperty.cs (1)
21
this.messageType =
WebSocketDefaults
.DefaultWebSocketMessageType;
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
449
WebSocketMessageType outgoingMessageType =
WebSocketDefaults
.DefaultWebSocketMessageType;
638
this.AddMessageProperties(messageProperties,
WebSocketDefaults
.DefaultWebSocketMessageType);
1052
: this(webSocket,
WebSocketDefaults
.DefaultWebSocketMessageType, closeTimeout)
System\ServiceModel\Channels\WebSocketTransportSettings.cs (12)
33
this.transportUsage =
WebSocketDefaults
.TransportUsage;
34
this.createNotificationOnConnection =
WebSocketDefaults
.CreateNotificationOnConnection;
35
this.keepAliveInterval =
WebSocketDefaults
.DefaultKeepAliveInterval;
36
this.subProtocol =
WebSocketDefaults
.SubProtocol;
37
this.disablePayloadMasking =
WebSocketDefaults
.DisablePayloadMasking;
38
this.maxPendingConnections =
WebSocketDefaults
.DefaultMaxPendingConnections;
52
[DefaultValue(
WebSocketDefaults
.TransportUsage)]
67
[DefaultValue(
WebSocketDefaults
.CreateNotificationOnConnection)]
81
[DefaultValue(typeof(TimeSpan),
WebSocketDefaults
.DefaultKeepAliveIntervalString)]
111
[DefaultValue(
WebSocketDefaults
.SubProtocol)]
144
[DefaultValue(
WebSocketDefaults
.DisablePayloadMasking)]
158
[DefaultValue(
WebSocketDefaults
.DefaultMaxPendingConnections)]
System\ServiceModel\Configuration\WebSocketTransportSettingsElement.cs (5)
18
[ConfigurationProperty(ConfigurationStrings.TransportUsage, DefaultValue =
WebSocketDefaults
.TransportUsage)]
26
[ConfigurationProperty(ConfigurationStrings.CreateNotificationOnConnection, DefaultValue =
WebSocketDefaults
.CreateNotificationOnConnection)]
33
[ConfigurationProperty(ConfigurationStrings.KeepAliveInterval, DefaultValue =
WebSocketDefaults
.DefaultKeepAliveIntervalString)]
50
[ConfigurationProperty(ConfigurationStrings.DisablePayloadMasking, DefaultValue =
WebSocketDefaults
.DisablePayloadMasking)]
57
[ConfigurationProperty(ConfigurationStrings.MaxPendingConnections, DefaultValue =
WebSocketDefaults
.DefaultMaxPendingConnections)]