15 references to Assert
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
248
Fx.
Assert
(connectionsCopy[i] != null, "IdleConnections should only be modified under thisLock");
261
Fx.
Assert
(successfulReturn, "IdleConnections should only be modified under thisLock");
System\ServiceModel\Channels\SessionConnectionReader.cs (2)
38
Fx.
Assert
(_buffer != null, "_buffer can't be null");
44
Fx.
Assert
(EnvelopeBuffer != null, "EnvelopeBuffer can't be null");
System\ServiceModel\Channels\SingletonConnectionReader.cs (2)
250
Fx.
Assert
(_decoder.CurrentState == SingletonMessageDecoder.State.ReadingEnvelopeBytes || _decoder.CurrentState == SingletonMessageDecoder.State.ChunkEnd, "");
275
Fx.
Assert
(size <= _chunkBuffer.Length, "");
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
315
Fx.
Assert
(IsChannelBindingSupportEnabled, "A request for the ChannelBinding is not permitted without enabling ChannelBinding first (through the IChannelBindingProvider interface)");
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
222
Fx.
Assert
(_channelBindingToken == null, "ChannelBinding token can only be set once.");
System.ServiceModel.NetNamedPipe (6)
System\ServiceModel\Channels\PipeConnection.cs (6)
387
Fx.
Assert
(Monitor.IsEntered(_readLock), "_readLock must be entered");
393
Fx.
Assert
(Monitor.IsEntered(_writeLock), "_writeLock must be entered");
399
Fx.
Assert
(Monitor.IsEntered(_readLock), "_readLock must be entered");
405
Fx.
Assert
(Monitor.IsEntered(_writeLock), "_writeLock must be entered");
508
Fx.
Assert
(Monitor.IsEntered(_readLock), "_readLock must be entered");
530
Fx.
Assert
(Monitor.IsEntered(_writeLock), "_writeLock must be entered");
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
254
Fx.
Assert
(!_asyncWritePending, "Called BeginWrite twice.");