22 references to WebSocketTransportUsage
dotnet-svcutil-lib (22)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
441if (channelType == typeof(IRequestChannel) && WebSocketSettings.TransportUsage == WebSocketTransportUsage.Always) 453if (WebSocketSettings.TransportUsage == WebSocketTransportUsage.Never)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (3)
450return this.WebSocketSettings.TransportUsage != WebSocketTransportUsage.Always; 454return this.WebSocketSettings.TransportUsage != WebSocketTransportUsage.Never; 539if (this.WebSocketSettings.TransportUsage == WebSocketTransportUsage.Always)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
160httpTransport.WebSocketSettings.TransportUsage = WebSocketTransportUsage.Always;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (4)
351public const WebSocketTransportUsage TransportUsage = WebSocketTransportUsage.Never; 370public const WebSocketTransportUsage TransportUsage = WebSocketTransportUsage.WhenDuplex;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
43internal static bool UseWebSocketTransport(WebSocketTransportUsage transportUsage, bool isContractDuplex) 45return transportUsage == WebSocketTransportUsage.Always 46|| (transportUsage == WebSocketTransportUsage.WhenDuplex && isContractDuplex);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
22private WebSocketTransportUsage _transportUsage; 42public WebSocketTransportUsage TransportUsage
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportUsageHelper.cs (6)
11internal static bool IsDefined(WebSocketTransportUsage value) 13return value == WebSocketTransportUsage.WhenDuplex 14|| value == WebSocketTransportUsage.Never 15|| value == WebSocketTransportUsage.Always; 18internal static void Validate(WebSocketTransportUsage value) 23new InvalidEnumArgumentException("value", (int)value, typeof(WebSocketTransportUsage)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
207if (transport == null || transport.WebSocketSettings.TransportUsage != WebSocketTransportUsage.Always)