5 writes to TransportUsage
System.ServiceModel (5)
System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
168
httpTransport.WebSocketSettings.
TransportUsage
= WebSocketTransportUsage.Always;
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
44
this.
TransportUsage
= settings.TransportUsage;
System\ServiceModel\Configuration\WebSocketTransportSettingsElement.cs (1)
87
settings.
TransportUsage
= this.TransportUsage;
System\ServiceModel\NetHttpBinding.cs (1)
302
this.WebSocketSettings.
TransportUsage
= NetHttpBindingDefaults.TransportUsage;
System\ServiceModel\NetHttpsBinding.cs (1)
204
this.InternalWebSocketSettings.
TransportUsage
= NetHttpBindingDefaults.TransportUsage;
19 references to TransportUsage
System.ServiceModel (19)
System\ServiceModel\Channels\HttpChannelFactory.cs (4)
466
if (channelType == typeof(IRequestChannel) && this.WebSocketSettings.
TransportUsage
== WebSocketTransportUsage.Always)
473
this.WebSocketSettings.
TransportUsage
)));
478
if (this.WebSocketSettings.
TransportUsage
== WebSocketTransportUsage.Never)
485
this.WebSocketSettings.
TransportUsage
)));
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 (7)
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;
787
bool useWebSocketTransport = WebSocketHelper.UseWebSocketTransport(this.WebSocketSettings.
TransportUsage
, policyContext.Contract.IsDuplex());
843
if (this.WebSocketSettings.
TransportUsage
== WebSocketTransportUsage.Always)
882
bool useWebSocketTransport = WebSocketHelper.UseWebSocketTransport(this.WebSocketSettings.
TransportUsage
, endpointContext.ContractConversionContext.Contract.IsDuplex());
System\ServiceModel\Channels\WebSocketTransportSettings.cs (4)
44
this.TransportUsage = settings.
TransportUsage
;
187
return this.
TransportUsage
== other.
TransportUsage
208
int hashcode = this.
TransportUsage
.GetHashCode()
System\ServiceModel\Configuration\WebSocketTransportSettingsElement.cs (1)
72
SetPropertyValueIfNotDefaultValue(ConfigurationStrings.TransportUsage, settings.
TransportUsage
);
System\ServiceModel\NetHttpBinding.cs (1)
220
if (transport == null || transport.WebSocketSettings.
TransportUsage
!= WebSocketTransportUsage.Always)