128 references to AssertAndThrow
System.ServiceModel.Primitives (128)
Internals\System\Runtime\Fx.cs (2)
115AssertAndThrow(description); 324AssertAndThrow("Creation of the Guid failed.");
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
44return fatal ? Fx.AssertAndThrowFatal("Fatal InternalException should never be thrown.") : Fx.AssertAndThrow("InternalException should never be thrown.");
System\ServiceModel\Channels\ChannelReliableSession.cs (6)
356throw Fx.AssertAndThrow("Unknown version."); 399throw Fx.AssertAndThrow("This method must be called from a fault thread."); 604throw Fx.AssertAndThrow("The client reliable channel must set the polling handler prior to opening the client reliable session."); 658throw Fx.AssertAndThrow("Unknown polling mode."); 778throw Fx.AssertAndThrow("Reliable messaging version not supported."); 816throw Fx.AssertAndThrow("Can't resume polling if pollingMode != PollingMode.NotPolling");
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (4)
107throw Fx.AssertAndThrow("ClientReliableChannelBinder supports creation of IDuplexChannel, IDuplexSessionChannel, IRequestChannel, and IRequestSessionChannel only."); 133throw Fx.AssertAndThrow("The derived class does not support the OnRequest operation."); 408throw Fx.AssertAndThrow("The method GetInputMessages() cannot be called when the binder is in the Created state."); 413throw Fx.AssertAndThrow("The method GetInputMessages() cannot be called when the binder is in the Opening state.");
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (3)
521throw Fx.AssertAndThrow("Fault must be UnknownSequence fault."); 526throw Fx.AssertAndThrow("In wsrm11, if we start getting UnknownSequence, terminateRequestor cannot be null."); 1004throw Fx.AssertAndThrow("Reliable messaging version not supported.");
System\ServiceModel\Channels\CommunicationObject.cs (10)
299throw Fx.AssertAndThrow("CommunicationObject.BeginClose: Unknown CommunicationState"); 395throw Fx.AssertAndThrow("DoneReceivingInCurrentState: Unknown CommunicationObject.state"); 486throw Fx.AssertAndThrow("GetTerminalException: Invalid CommunicationObject.state"); 764throw Fx.AssertAndThrow("ThrowIfFaulted: Unknown CommunicationObject.state"); 813throw Fx.AssertAndThrow("ThrowIfClosed: Unknown CommunicationObject.state"); 847throw Fx.AssertAndThrow("ThrowIfDisposed: Unknown CommunicationObject.state"); 876throw Fx.AssertAndThrow("ThrowIfClosedOrOpened: Unknown CommunicationObject.state"); 905throw Fx.AssertAndThrow("ThrowIfDisposedOrImmutable: Unknown CommunicationObject.state"); 934throw Fx.AssertAndThrow("ThrowIfDisposedOrNotOpen: Unknown CommunicationObject.state"); 971throw Fx.AssertAndThrow("ThrowIfClosedOrNotOpen: Unknown CommunicationObject.state");
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
19throw Fx.AssertAndThrow("Argument quota must be positive.");
System\ServiceModel\Channels\LifetimeManager.cs (1)
179throw Fx.AssertAndThrow("LifetimeManager.DecrementBusyCount: (this.busyCount > 0)");
System\ServiceModel\Channels\ReliableChannelBinder.cs (34)
41throw Fx.AssertAndThrow("ReliableChannelBinder was implemented with only 2 default masking modes, None and All."); 286throw Fx.AssertAndThrow("MustCloseChannel is false when there is no receive loop and this method is called when there is a receive loop."); 325throw Fx.AssertAndThrow("The binder should not detect the inner channel's faults until after the binder is opened."); 380throw Fx.AssertAndThrow("Caller is attempting to get a terminal exception in a non-terminal state."); 546throw Fx.AssertAndThrow("The derived class does not support the Send operation."); 551throw Fx.AssertAndThrow("The derived class does not support the TryReceive operation."); 675throw Fx.AssertAndThrow("Messaging operations cannot be called when the binder is in the Created state."); 680throw Fx.AssertAndThrow("Messaging operations cannot be called when the binder is in the Opening state."); 720throw Fx.AssertAndThrow("Caller cannot transition to the Closed state from a non-terminal state."); 934throw Fx.AssertAndThrow("It is only valid to abort the current channel when masking faults"); 966throw Fx.AssertAndThrow("Argument waiter cannot be null."); 1015throw Fx.AssertAndThrow("The caller may only invoke this EnsureChannel during the CreateSequence negotiation. ChannelOpening and ChannelClosing are invalid states during this phase of the negotiation."); 1065throw Fx.AssertAndThrow("This method may only be called in the NoChannel state."); 1158throw Fx.AssertAndThrow("Argument waiter cannot be null."); 1172throw Fx.AssertAndThrow("Caller must ensure that field currentChannel is set before opening the channel."); 1179throw Fx.AssertAndThrow("This method may only be called in the ChannelOpening state."); 1232throw Fx.AssertAndThrow("The state must be set to ChannelOpening before the caller attempts to open the channel."); 1253throw Fx.AssertAndThrow("Caller must ensure that OnReadEof is called before ReturnChannel."); 1260throw Fx.AssertAndThrow("Since count is positive, the only valid states are ChannelOpened and ChannelClosing."); 1319throw Fx.AssertAndThrow("Method ReturnChannel() can only be called after TryGetChannel or EndTryGetChannel returns a channel."); 1329throw Fx.AssertAndThrow("ChannelOpened and ChannelClosing are the only 2 valid states when count is positive."); 1399throw Fx.AssertAndThrow("SetChannel is only valid in the NoChannel and ChannelOpening states"); 1404throw Fx.AssertAndThrow("SetChannel is only valid when masking faults"); 1461throw Fx.AssertAndThrow("Abort is the only operation that can race with Open."); 1563throw Fx.AssertAndThrow("Field currentChannel cannot be null in the ChannelOpened state."); 1592throw Fx.AssertAndThrow("The state must be NoChannel."); 1659throw Fx.AssertAndThrow("This operation expects that the synchronizer has been opened."); 1671throw Fx.AssertAndThrow("The WaitForPendingOperations operation may only be invoked once."); 1725throw Fx.AssertAndThrow("This waiter must wait for a channel thus argument channel must be null."); 1764throw Fx.AssertAndThrow("This waiter must wait for a channel thus the caller cannot attempt to get a channel."); 1773_channel = channel ?? throw Fx.AssertAndThrow("Argument channel cannot be null. Caller must call Fault or Close instead."); 1846throw Fx.AssertAndThrow("User of IWaiter called both Set and Fault or Close."); 1922throw Fx.AssertAndThrow("This request context is designed to catch exceptions. Thus it cannot be used if the caller expects no exception handling."); 1925_innerContext = innerContext ?? throw Fx.AssertAndThrow("Argument innerContext cannot be null.");
System\ServiceModel\Channels\ReliableInputConnection.cs (1)
160throw Fx.AssertAndThrow("Last can only be set once.");
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (26)
92throw Fx.AssertAndThrow("Exit can only be called after Enter."); 125throw Fx.AssertAndThrow("Argument callback cannot be null."); 135throw Fx.AssertAndThrow("Argument callback cannot be null."); 287throw Fx.AssertAndThrow("Argument communicationObject cannot be null."); 308throw Fx.AssertAndThrow("Argument communicationObject cannot be null."); 979throw Fx.AssertAndThrow("Initialize messageId only once."); 1070throw Fx.AssertAndThrow("Not Supported."); 1099throw Fx.AssertAndThrow("Not Supported."); 1246throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1286throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1302throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1318throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1335throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1351throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1367throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1389throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1406throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1428throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1440throw Fx.AssertAndThrow("Reliable messaging version not supported."); 1567throw Fx.AssertAndThrow("Element not supported."); 1655throw Fx.AssertAndThrow("Element not supported."); 1702throw Fx.AssertAndThrow("WS-ReliableMessaging 1.1 required."); 1806throw Fx.AssertAndThrow("Unsupported version."); 1833throw Fx.AssertAndThrow("Unsupported version."); 1899throw Fx.AssertAndThrow("Unsupported version."); 2169throw Fx.AssertAndThrow("Method is meant for CloseSequence or TerminateSequence only.");
System\ServiceModel\Channels\ReliableOutputConnection.cs (3)
88throw Fx.AssertAndThrow("Unsupported version."); 144throw Fx.AssertAndThrow("The isLast overload does not take a state."); 227throw Fx.AssertAndThrow("Argument transferred must be a valid sequence number or 0 for protocol messages.");
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (4)
391throw Fx.AssertAndThrow("Argument reply cannot be null."); 545throw Fx.AssertAndThrow("Fault must be UnknownSequence fault."); 550throw Fx.AssertAndThrow("In wsrm11, if we start getting UnknownSequence, terminateRequestor cannot be null."); 597throw Fx.AssertAndThrow("Reliable messaging version not supported.");
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (5)
414throw Fx.AssertAndThrow("Argument reply cannot be null."); 423throw Fx.AssertAndThrow("Close does not exist in Feb2005."); 466throw Fx.AssertAndThrow("Reliable messaging version not supported."); 490throw Fx.AssertAndThrow("Fault must be UnknownSequence fault."); 495throw Fx.AssertAndThrow("If we start getting UnknownSequence, terminateRequestor cannot be null.");
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
274throw Fx.AssertAndThrow("Reliable messaging version not supported.");
System\ServiceModel\Channels\SequenceRange.cs (2)
22throw Fx.AssertAndThrow("Argument lower cannot be negative."); 27throw Fx.AssertAndThrow("Argument upper cannot be less than argument lower.");
System\ServiceModel\Channels\TransmissionStrategy.cs (15)
37throw Fx.AssertAndThrow("The caller is not allowed to get an invalid SequenceNumber."); 84throw Fx.AssertAndThrow("Argument maxWindow size must be positive."); 185throw Fx.AssertAndThrow("Last message supported only in February 2005."); 243throw Fx.AssertAndThrow("The reliable channel must throw prior to the call to Close() if there are outstanding send or request operations."); 363throw Fx.AssertAndThrow("The caller is not allowed to remove a message attempt when there are no message attempts."); 396throw Fx.AssertAndThrow("SetLast supported only in 1.1."); 403throw Fx.AssertAndThrow("Cannot set last more than once."); 421throw Fx.AssertAndThrow("Can't add more than one last message."); 540throw Fx.AssertAndThrow("Argument transferred must be a valid sequence number."); 864throw Fx.AssertAndThrow("The caller is not allowed to add messages beyond the sliding window's maximum size."); 875throw Fx.AssertAndThrow("Argument index must be less than Count."); 880throw Fx.AssertAndThrow("Argument index must be positive."); 926throw Fx.AssertAndThrow("Argument beginIndex cannot be negative."); 931throw Fx.AssertAndThrow("Argument endIndex cannot be greater than Count."); 936throw Fx.AssertAndThrow("Argument endIndex cannot be less than argument beginIndex.");
System\ServiceModel\Channels\WsrmFault.cs (6)
107throw Fx.AssertAndThrow("Exception message must not be accessed unless set."); 146throw Fx.AssertAndThrow("Unsupported MessageVersion."); 161throw Fx.AssertAndThrow("Exception message must not be accessed unless set."); 171throw Fx.AssertAndThrow("Reliable messaging version must not be accessed unless set."); 183throw Fx.AssertAndThrow("Reliable messaging version cannot be set to null."); 188throw Fx.AssertAndThrow("Reliable messaging version must not be set twice.");
System\ServiceModel\Channels\WsrmMessageInfo.cs (2)
47throw Fx.AssertAndThrow("FaultException can only be set once."); 72throw Fx.AssertAndThrow("FaultReply can only be set once.");
System\ServiceModel\Security\SecurityUtils.cs (1)
240throw Fx.AssertAndThrow("target should not be null - expecting an EndpointAddress");