33 references to WebSocketTransportUsage
System.ServiceModel (33)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
466
if (channelType == typeof(IRequestChannel) && this.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Always)
478
if (this.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Never)
System\ServiceModel\Channels\HttpChannelListener.cs (2)
834
this.useWebSocketTransport = bindingElement.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Always
835
|| (bindingElement.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.WhenDuplex && typeof(TChannel) != typeof(IReplyChannel));
System\ServiceModel\Channels\HttpTransportBindingElement.cs (5)
544
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Always;
548
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Never;
557
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Always;
561
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Never;
843
if (this.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Always)
System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
168
httpTransport.WebSocketSettings.TransportUsage =
WebSocketTransportUsage
.Always;
System\ServiceModel\Channels\TransportDefaults.cs (4)
491
internal const
WebSocketTransportUsage
TransportUsage =
WebSocketTransportUsage
.Never;
522
internal const
WebSocketTransportUsage
TransportUsage =
WebSocketTransportUsage
.WhenDuplex;
System\ServiceModel\Channels\WebSocketHelper.cs (3)
76
internal static bool UseWebSocketTransport(
WebSocketTransportUsage
transportUsage, bool isContractDuplex)
78
return transportUsage ==
WebSocketTransportUsage
.Always
79
|| (transportUsage ==
WebSocketTransportUsage
.WhenDuplex && isContractDuplex);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
24
WebSocketTransportUsage
transportUsage;
53
public
WebSocketTransportUsage
TransportUsage
System\ServiceModel\Channels\WebSocketTransportUsageHelper.cs (6)
11
internal static bool IsDefined(
WebSocketTransportUsage
value)
13
return value ==
WebSocketTransportUsage
.WhenDuplex
14
|| value ==
WebSocketTransportUsage
.Never
15
|| value ==
WebSocketTransportUsage
.Always;
18
internal static void Validate(
WebSocketTransportUsage
value)
23
new InvalidEnumArgumentException("value", (int)value, typeof(
WebSocketTransportUsage
)));
System\ServiceModel\Configuration\NetHttpWebSocketTransportSettingsElement.cs (1)
17
public override
WebSocketTransportUsage
TransportUsage
System\ServiceModel\Configuration\Properties.cs (4)
2211
properties.Add(new ConfigurationProperty("transportUsage", typeof(System.ServiceModel.Channels.
WebSocketTransportUsage
), System.ServiceModel.Channels.
WebSocketTransportUsage
.WhenDuplex, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Channels.WebSocketTransportUsageHelper)), System.Configuration.ConfigurationPropertyOptions.None));
2237
properties.Add(new ConfigurationProperty("transportUsage", typeof(System.ServiceModel.Channels.
WebSocketTransportUsage
), System.ServiceModel.Channels.
WebSocketTransportUsage
.Never, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Channels.WebSocketTransportUsageHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WebSocketTransportSettingsElement.cs (2)
20
public virtual
WebSocketTransportUsage
TransportUsage
22
get { return (
WebSocketTransportUsage
)base[ConfigurationStrings.TransportUsage]; }
System\ServiceModel\NetHttpBinding.cs (1)
220
if (transport == null || transport.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Always)