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