71 references to WebSocketHelper
dotnet-svcutil-lib (71)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (5)
107
_webSocketSettings =
WebSocketHelper
.GetRuntimeWebSocketSettings(bindingElement.WebSocketSettings);
414
remoteAddress = remoteAddress != null && !
WebSocketHelper
.IsWebSocketUri(remoteAddress.Uri) ?
415
new EndpointAddress(
WebSocketHelper
.NormalizeHttpSchemeWithWsScheme(remoteAddress.Uri), remoteAddress) :
417
via = !
WebSocketHelper
.IsWebSocketUri(via) ?
WebSocketHelper
.NormalizeHttpSchemeWithWsScheme(via) : via;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (5)
52
(
WebSocketHelper
.SchemeWs.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase) ||
53
WebSocketHelper
.SchemeWss.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase));
222
case
WebSocketHelper
.CloseOperation:
225
case
WebSocketHelper
.SendOperation:
228
case
WebSocketHelper
.ReceiveOperation:
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (59)
26
private int _cleanupStatus =
WebSocketHelper
.OperationNotStarted;
104
closeTask.Wait(timeout,
WebSocketHelper
.ThrowCorrectException,
WebSocketHelper
.CloseOperation);
123
task.Wait(timeout,
WebSocketHelper
.ThrowCorrectException,
WebSocketHelper
.CloseOperation);
154
throw
WebSocketHelper
.ConvertAndTraceException(ex, timeout,
WebSocketHelper
.ReceiveOperation);
212
_pendingWritingMessageException =
WebSocketHelper
.CreateExceptionOnTaskFailure(task, timeout,
WebSocketHelper
.SendOperation);
258
_pendingWritingMessageException =
WebSocketHelper
.CreateExceptionOnTaskFailure(task, timeout,
WebSocketHelper
.CloseOperation);
295
task.Wait(helper.RemainingTime(),
WebSocketHelper
.ThrowCorrectException,
WebSocketHelper
.SendOperation);
330
if (Interlocked.CompareExchange(ref _cleanupStatus,
WebSocketHelper
.OperationFinished,
WebSocketHelper
.OperationNotStarted) ==
WebSocketHelper
.OperationNotStarted)
338
Fx.Assert(_cleanupStatus ==
WebSocketHelper
.OperationFinished,
370
throw
WebSocketHelper
.ConvertAndTraceException(e);
387
throw
WebSocketHelper
.ConvertAndTraceException(e);
404
_pendingWritingMessageException =
WebSocketHelper
.CreateExceptionOnTaskFailure(task, timeout,
WebSocketHelper
.CloseOperation);
420
_pendingWritingMessageException =
WebSocketHelper
.CreateExceptionOnTaskFailure(task, timeout,
421
WebSocketHelper
.SendOperation);
494
_receiveBufferSize = Math.Min(
WebSocketHelper
.GetReceiveBufferSize(_maxReceivedMessageSize), _maxBufferSize);
614
WebSocketHelper
.ThrowCorrectException(ex, TimeSpan.MaxValue,
WebSocketHelper
.ReceiveOperation);
644
_pendingException =
WebSocketHelper
.ConvertAndTraceException(ex, TimeSpan.MaxValue,
WebSocketHelper
.ReceiveOperation);
781
WebSocketHelper
.ThrowCorrectException(ex, _asyncReceiveTimeout,
WebSocketHelper
.ReceiveOperation);
792
_pendingException =
WebSocketHelper
.ConvertAndTraceException(ex, _asyncReceiveTimeout,
WebSocketHelper
.ReceiveOperation);
919
_messageSourceCleanState =
WebSocketHelper
.OperationNotStarted;
920
_endOfMessageWritten =
WebSocketHelper
.OperationNotStarted;
932
_messageSourceCleanState =
WebSocketHelper
.OperationFinished;
1024
throw FxTrace.Exception.AsError(
WebSocketHelper
.GetTimeoutException(null,
1025
_readTimeoutHelper.OriginalTimeout,
WebSocketHelper
.ReceiveOperation));
1074
throw
WebSocketHelper
.ConvertAndTraceException(ex, new TimeSpan(ReadTimeout),
WebSocketHelper
.ReceiveOperation);
1125
if (_endOfMessageWritten ==
WebSocketHelper
.OperationFinished)
1154
throw
WebSocketHelper
.ConvertAndTraceException(ex, new TimeSpan(WriteTimeout),
WebSocketHelper
.SendOperation);
1181
if (Interlocked.CompareExchange(ref _endOfMessageWritten,
WebSocketHelper
.OperationFinished,
WebSocketHelper
.OperationNotStarted) ==
WebSocketHelper
.OperationNotStarted)
1184
task.Wait(timeoutHelper.RemainingTime(),
WebSocketHelper
.ThrowCorrectException,
WebSocketHelper
.SendOperation);
1229
throw
WebSocketHelper
.ConvertAndTraceException(ex, timeoutHelper.OriginalTimeout,
1230
WebSocketHelper
.SendOperation);
1259
if (Interlocked.CompareExchange(ref _messageSourceCleanState,
WebSocketHelper
.OperationFinished,
WebSocketHelper
.OperationNotStarted) ==
WebSocketHelper
.OperationNotStarted)
1274
WebSocketHelper
.ThrowCorrectException,
WebSocketHelper
.ReceiveOperation);
1291
pendingException =
WebSocketHelper
.ConvertAndTraceException(ex, _closeTimeout,
WebSocketHelper
.CloseOperation);
1301
if (Interlocked.CompareExchange(ref _endOfMessageWritten,
WebSocketHelper
.OperationFinished,
WebSocketHelper
.OperationNotStarted) ==
WebSocketHelper
.OperationNotStarted)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (2)
103
if (value.Split(
WebSocketHelper
.ProtocolSeparators).Length > 1)
109
if (
WebSocketHelper
.IsSubProtocolInvalid(value, out invalidChar))