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