22 references to WebSocketTransportUsage
dotnet-svcutil-lib (22)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
441
if (channelType == typeof(IRequestChannel) && WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Always)
453
if (WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Never)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (3)
450
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Always;
454
return this.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Never;
539
if (this.WebSocketSettings.TransportUsage ==
WebSocketTransportUsage
.Always)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
160
httpTransport.WebSocketSettings.TransportUsage =
WebSocketTransportUsage
.Always;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (4)
351
public const
WebSocketTransportUsage
TransportUsage =
WebSocketTransportUsage
.Never;
370
public const
WebSocketTransportUsage
TransportUsage =
WebSocketTransportUsage
.WhenDuplex;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
43
internal static bool UseWebSocketTransport(
WebSocketTransportUsage
transportUsage, bool isContractDuplex)
45
return transportUsage ==
WebSocketTransportUsage
.Always
46
|| (transportUsage ==
WebSocketTransportUsage
.WhenDuplex && isContractDuplex);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
22
private
WebSocketTransportUsage
_transportUsage;
42
public
WebSocketTransportUsage
TransportUsage
FrameworkFork\System.ServiceModel\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
)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
207
if (transport == null || transport.WebSocketSettings.TransportUsage !=
WebSocketTransportUsage
.Always)