204 references to Assert
dotnet-svcutil-lib (204)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
838Fx.Assert(baseContractCodeDomInfo.IsProcessed, "Cannot generate code for type if code for base type has not been generated");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\KnownTypeDataContractResolver.cs (1)
20Fx.Assert(context != null, "KnownTypeDataContractResolver should not be instantiated with a null context");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (2)
742Fx.Assert(value >= int.MinValue && value <= int.MaxValue, ""); 828Fx.Assert(s[i] < 128, "");
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
900Fx.Assert(buffer[offset] == 0xEF, "buffer[offset] MUST be 0xEF.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (2)
66Fx.Assert(callback != null, "Cannot schedule a null callback"); 115Fx.Assert(callback != null, "Shouldn't instantiate an object to wrap a null callback");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (1)
143Fx.Assert(_manualResetEvent == null, "No ManualResetEvent should be created for a synchronous AsyncResult.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (7)
97Fx.Assert(!_initialized, "Clear must be called before re-initializing stream"); 187Fx.Assert(_initialized, "No data to return from uninitialized stream"); 188Fx.Assert(!_bufferReturned, "ToArray cannot be called more than once"); 233Fx.Assert(_initialized, "Cannot write to uninitialized stream"); 234Fx.Assert(!_bufferReturned, "Cannot write to stream once ToArray has been called."); 278Fx.Assert(_initialized, "Cannot write to uninitialized stream"); 279Fx.Assert(!_bufferReturned, "Cannot write to stream once ToArray has been called.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\CallbackException.cs (2)
17Fx.Assert(innerException != null, "CallbackException requires an inner exception."); 18Fx.Assert(!Fx.IsFatal(innerException), "CallbackException can't be used to wrap fatal exceptions.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
468Fx.Assert(sb != null, "'sb' MUST NOT be NULL.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (4)
25Fx.Assert(diagnosticTrace != null, "'diagnosticTrace' MUST NOT be NULL."); 81Fx.Assert(targetInvocationException != null, "targetInvocationException cannot be null."); 125Fx.Assert(aggregateException != null, "aggregateException cannot be null."); 164Fx.Assert(innerExceptions.Count > 0, "InnerException.Count is known to be > 0 here.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (1)
20Fx.Assert(innerException == null || !Fx.IsFatal(innerException), "FatalException can't be used to wrap fatal exceptions.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (9)
41Fx.Assert(asyncCallbackGenerator != null, "use default ctor if you don't have a generator"); 326Fx.Assert(exception != null, "EnqueueAndDispatch: exception parameter should not be null"); 332Fx.Assert(item != null, "EnqueueAndDispatch: item parameter should not be null"); 338Fx.Assert(item != null, "EnqueueWithoutDispatch: item parameter should not be null"); 344Fx.Assert(exception != null, "EnqueueWithoutDispatch: exception parameter should not be null"); 571Fx.Assert(state != null, "InputQueue.OnInvokeDequeuedCallback: (state != null)"); 700Fx.Assert(reader != null, "InputQueue.RemoveReader: (reader != null)"); 1021Fx.Assert(_item == null, "InputQueue.WaitQueueReader.Set: (this.item == null)"); 1022Fx.Assert(_exception == null, "InputQueue.WaitQueueReader.Set: (this.exception == null)");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (3)
35Fx.Assert(maxBufferPoolSize > 0 && maxBufferSize >= 0, "bad params, caller should verify"); 214Fx.Assert(buffer != null, "caller must verify"); 234Fx.Assert(bufferSize >= 0, "caller must ensure a non-negative argument");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (4)
35Fx.Assert(lowWatermark < highWatermark, ""); 36Fx.Assert(lowWatermark >= 0, ""); 61Fx.Assert(null != key, ""); 110Fx.Assert(null != key, "");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (1)
366Fx.Assert(n < 0x10, "n < 0x10");
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionMismatchAddressingException.cs (1)
40Fx.Assert(messageVersion.Addressing == AddressingVersion.WSAddressing10, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpMessageSecurity.cs (1)
92Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpSecurity.cs (2)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString())); 123Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurity.cs (2)
76Fx.Assert(basicHttpsSecurity != null, "Cannot pass in a null value for basicHttpsSecurity"); 89Fx.Assert(basicHttpSecurity != null, "basicHttpSecurity cannot be null");
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsSecurityMode.cs (1)
39Fx.Assert(mode == BasicHttpSecurityMode.Transport || mode == BasicHttpSecurityMode.TransportWithMessageCredential, string.Format(CultureInfo.InvariantCulture, "Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (2)
176Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 185Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (3)
313Fx.Assert(reader.NodeType == XmlNodeType.Element, ""); 316Fx.Assert(_name != null, ""); 317Fx.Assert(_ns != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Addressing.cs (7)
91Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.Action, addressingVersion.DictionaryNamespace), ""); 219Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.From, addressingVersion.DictionaryNamespace), ""); 311Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.FaultTo, version.DictionaryNamespace), ""); 436Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.To, version.DictionaryNamespace), ""); 615Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.ReplyTo, version.DictionaryNamespace), ""); 692Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.MessageId, version.DictionaryNamespace), ""); 823Fx.Assert(reader.IsStartElement(addressingDictionary.RelatesTo, version.DictionaryNamespace), "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingElement.cs (1)
46Fx.Assert(true, "Should not be called unless this binding element is used in one of the standard bindings. In which case, please re-implement the IsMatch() method.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
196Fx.Assert(func != null, "Func should not be null.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (3)
17Fx.Assert(httpResponseMessage != null, "The 'httpRequestMessage' parameter should not be null."); 18Fx.Assert(message != null, "The 'message' parameter should not be null."); 31Fx.Assert(httpResponseMessage != null, "The 'httpResponseMessage' parameter should never be null.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
168Fx.Assert(messageHandler != null, "httpMessageHandler should not be null."); 188Fx.Assert(_sslCertificateValidator != null, "sslCertificateAuthentidation should not be null.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
263Fx.Assert(connectionsCopy[i] != null, "IdleConnections should only be modified under thisLock"); 276Fx.Assert(successfulReturn, "IdleConnections should only be modified under thisLock");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LayeredChannel.cs (1)
18Fx.Assert(innerChannel != null, "innerChannel cannot be null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (5)
175Fx.Assert(this.State == LifetimeState.Opened, "LifetimeManager.IncrementBusyCount: (this.State == LifetimeState.Opened)"); 182Fx.Assert(this.State == LifetimeState.Opened, "LifetimeManager.IncrementBusyCountWithoutLock: (this.State == LifetimeState.Opened)"); 202Fx.Assert(_aborted, "LifetimeManager.OnBeginClose: (this.aborted == true)"); 208Fx.Assert(_busyWaiter == null, "LifetimeManager.OnBeginClose: (this.busyWaiter == null)"); 342Fx.Assert(aborting, "CloseCommunicationAsyncResult.Wait: (aborting == true)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
788Fx.Assert(message != null, "message should never be null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (2)
515Fx.Assert(_name != null, ""); 516Fx.Assert(_ns != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (4)
1175Fx.Assert(reader.IsStartElement(XD.MessageDictionary.Header, envelopeVersion.DictionaryNamespace), ""); 1313Fx.Assert(_version.Addressing.DictionaryNamespace != null, "non-None Addressing requires a non-null DictionaryNamespace"); 1745Fx.Assert(_type == HeaderType.WriteableHeader || _type == HeaderType.ReadableHeader, ""); 1760Fx.Assert(_type == HeaderType.ReadableHeader, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (2)
57Fx.Assert(_requestMessageException == null, "Cannot have both a requestMessage and a requestException."); 63Fx.Assert(_requestMessage == null, "Cannot have both a requestMessage and a requestException.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
65Fx.Assert(request != null, "request cannot be null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
673Fx.Assert(channel != null, "'channel' MUST NOT be NULL."); 674Fx.Assert(operation != null, "'operation' MUST NOT be NULL.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
327Fx.Assert(this.IsChannelBindingSupportEnabled, "A request for the ChannelBinding is not permitted without enabling ChannelBinding first (through the IChannelBindingProvider interface)"); 505Fx.Assert(this.IsChannelBindingSupportEnabled, "A request for the ChannelBinding is not permitted without enabling ChannelBinding first (through the IChannelBindingProvider interface)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
343Fx.Assert(request.RequestUri.Scheme == UriEx.UriSchemeHttps, 349Fx.Assert(remoteCertificateIdentity.Certificates.Count <= 1,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (1)
23Fx.Assert(wsdlBinding != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (2)
58Fx.Assert(uri != null, "RemoteAddress.Uri should not be null."); 83Fx.Assert(protocol != null, "protocol should not be null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (15)
33Fx.Assert(channelFactory.WebSocketSettings != null, "channelFactory.WebSocketTransportSettings should not be null."); 49Fx.Assert(value != null, "value should not be null."); 50Fx.Assert(_webSocket == null, "webSocket should not be set before this set call."); 250Fx.Assert(callback != null, "callback should not be null."); 254Fx.Assert(_pendingWritingMessageException == null, "'pendingWritingMessageException' MUST be NULL at this point."); 268Fx.Assert(message != null, "message should not be null."); 338Fx.Assert(_cleanupStatus == WebSocketHelper.OperationFinished, 597Fx.Assert(newSize > 0, "buffer size should be larger than zero."); 625Fx.Assert(result != null, "Result should not be null"); 723Fx.Assert(_receiveTask == null || _receiveTask.Task.IsCompleted, "this.receiveTask is not completed."); 726Fx.Assert(currentState == AsyncReceiveState.Finished, "currentState is not AsyncReceiveState.Finished: " + currentState); 867Fx.Assert(result.MessageType == WebSocketMessageType.Text, "result.MessageType must be WebSocketMessageType.Text."); 913Fx.Assert(messageSource != null, "messageSource should not be null."); 928Fx.Assert(webSocket != null, "webSocket should not be null."); 1295Fx.Assert(_messageSource != null, "messageSource should not be null.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
35Fx.Assert(settings != null, "settings should not be null.");
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
566Fx.Assert(retArgs.Length == inArgs.Length, "retArgs.Length should be equal to inArgs.Length");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (7)
115Fx.Assert(s_clientCtorParamNames.Length == s_clientCtorParamTypes.Length, s_debugCheckTable_errorString); 131Fx.Assert(s_clientBaseType.GetConstructors(s_ctorBindingFlags).Length == s_clientCtorParamTypes.Length * 2, s_debugCheckTable_errorString); 134Fx.Assert(s_duplexClientBaseType.GetConstructors(s_ctorBindingFlags).Length == s_clientCtorParamTypes.Length * 2, s_debugCheckTable_errorString); 147Fx.Assert(ctor != null, s_debugCheckTable_errorString); 150Fx.Assert(parameters.Length == paramNames.Length, s_debugCheckTable_errorString); 153Fx.Assert(parameters[i].Name == paramNames[i], s_debugCheckTable_errorString); 912Fx.Assert(eventAsyncMethodPosition != -1,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
226Fx.Assert(proxyOperation != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (3)
245Fx.Assert(!OperationHasBeenHandled(operation), ""); 246Fx.Assert(operationInfo != null, ""); 775Fx.Assert(message != null, "Should not attempt to look for a part in an null message.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
145Fx.Assert(_oneway == (_response == null), "OperationContractGenerationContext.Operation cannot contain a null response message when the operation is not one-way"); 421Fx.Assert(Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(name), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", name)); 587Fx.Assert(String.IsNullOrEmpty(typeName) || Microsoft.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(typeName), String.Format(System.Globalization.CultureInfo.InvariantCulture, "Type name '{0}' is not ValidLanguageIndependentIdentifier!", typeName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
107Fx.Assert(e1.Name == e2.Name, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
218Fx.Assert(_context != null, "context was not initialized"); 274Fx.Assert(declaringType != null, "missing callback type"); 782Fx.Assert(IsSingleBit((int)option), "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
197Fx.Assert(null != localName, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SoapHelper.cs (7)
461Fx.Assert(soapAddressBinding != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 480Fx.Assert(soapBinding != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 498Fx.Assert(soapOperationBinding != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 516Fx.Assert(soapBodyBinding != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 534Fx.Assert(soapHeaderBinding != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 554Fx.Assert(ns != null, "EnvelopeVersion is not recognized. Please update the SoapHelper class"); 640Fx.Assert(element != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (7)
158Fx.Assert(contractType != null, ""); 165Fx.Assert(contractType != null, ""); 166Fx.Assert(serviceType != null, ""); 173Fx.Assert(contractType != null, ""); 174Fx.Assert(serviceType != null, ""); 175Fx.Assert(serviceImplementation != null, ""); 661Fx.Assert(NamingHelper.IsValidNCName(operationName), "operationName value has to be a valid NCName.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
31Fx.Assert(IsUnique(identifier), "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1774Fx.Assert(rest != null, "GetXPathParameters Method should never set rest to null. this happened for: " + item.GetType());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (4)
50Fx.Assert(reflector != null, ""); 242Fx.Assert(parent != null, ""); 243Fx.Assert(operation != null, ""); 244Fx.Assert(attr != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceAsyncResult.cs (1)
42Fx.Assert(thisPtr.CallbackActivity != null, "this shouldn't be hooked up if we don't have a CallbackActivity");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (2)
108Fx.Assert((_idleManager != null) == (_binder.HasSession && _listener.ChannelDispatcher.DefaultCommunicationTimeouts.ReceiveTimeout != TimeSpan.MaxValue), "idle manager is present only when there is a session with a finite receive timeout"); 164Fx.Assert(bufferedBinder != null, "ChannelHandler.Binder is not a BufferedReceiveBinder");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ClientRuntime.cs (2)
80Fx.Assert(shared.IsOnServer, "Server constructor called on client?"); 86Fx.Assert(!_shared.IsOnServer, "Client constructor called on server?");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
49Fx.Assert(!shared.IsOnServer, "Client constructor called on server?");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (13)
34Fx.Assert(channel != null, "caller must verify"); 35Fx.Assert(correlator != null, "caller must verify"); 556Fx.Assert(request != null, "request cannot be null"); 563Fx.Assert(request != null, "request cannot be null"); 752Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request"); 856Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request"); 1518Fx.Assert(_backgroundCloseData == null, "can't try twice"); 1532Fx.Assert(_backgroundCloseData != null, "Only callable from background close"); 1551Fx.Assert(_backgroundCloseData != null, "Need to check background close first"); 1553Fx.Assert(dummy == null, "we should get an exception or null"); 1558Fx.Assert(_backgroundCloseData != null, "Need to check background close first"); 1564Fx.Assert(_backgroundCloseData != null, "Need to check background close first"); 1566Fx.Assert(dummy == null, "we should get an exception or null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
189Fx.Assert(serializer != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
694Fx.Assert(
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (2)
69Fx.Assert((operationContext != null), "System.ServiceModel.Dispatcher.MessageRpc.MessageRpc(), operationContext == null"); 70Fx.Assert(channelHandler != null, "System.ServiceModel.Dispatcher.MessageRpc.MessageRpc(), channelHandler == null");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
733Fx.Assert(!_onBeginWriteBodyContentsCalled, "OnBeginWriteBodyContents has already been called");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
294Fx.Assert(bodyDescription != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
83Fx.Assert(invokeTask.Exception != null, "Task.IsFaulted guarantees non-null exception."); 88Fx.Assert(invokeTask.IsCompleted, "Task.Result is expected to be completed"); 91Fx.Assert(task != null, "Returned object is expected to be a non-null Task"); 94Fx.Assert(task.Exception != null, "Task.IsFaulted guarantees non-null exception.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (2)
95Fx.Assert(instanceContext != null, "instanceContext is null !"); 111Fx.Assert(syncContext != null, "syncContext is null !?");
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (3)
512Fx.Assert(reader.Name == DummyName, "EndpointAddress: Expected dummy element not found"); 1325Fx.Assert(reader.Name == EndpointAddress.DummyName, "EndpointAddressBuilder: Expected dummy element not found"); 1359Fx.Assert(reader.Name == EndpointAddress.DummyName, "EndpointAddressBuilder: Expected dummy element not found");
FrameworkFork\System.ServiceModel\System\ServiceModel\FederatedMessageSecurityOverHttp.cs (1)
236Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpBindingBase.cs (3)
222Fx.Assert(http.AuthenticationScheme.IsSingleton(), "authenticationScheme used in an Http(s)ChannelFactory must be a singleton value."); 252Fx.Assert(this.BasicHttpSecurity != null, "this.BasicHttpSecurity should not return null from a derived class."); 324Fx.Assert(
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
320Fx.Assert(object.ReferenceEquals(this, result.AsyncState), "AsyncState should be this");
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverHttp.cs (1)
219Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (3)
32Fx.Assert(creationTimeUtc.Kind == DateTimeKind.Utc, "creation time must be in UTC"); 33Fx.Assert(expiryTimeUtc.Kind == DateTimeKind.Utc, "expiry time must be in UTC"); 139Fx.Assert(n == 0, "Overflow in encoding timestamp field");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (3)
344Fx.Assert(item.ExpirationTime == DateTime.MaxValue || item.ExpirationTime.Kind == DateTimeKind.Utc, ""); 476Fx.Assert(item1.ExpirationTime.Kind == item2.ExpirationTime.Kind, ""); 500Fx.Assert(expirationTime == DateTime.MaxValue || expirationTime.Kind == DateTimeKind.Utc, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy12.cs (2)
53Fx.Assert(httpsBinding != null, "httpsBinding must not be null."); 54Fx.Assert(httpsBinding.AuthenticationScheme.IsSingleton(), "authenticationScheme must be a singleton value for security-mode TransportWithMessageCredential.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (1)
142Fx.Assert(_customCertificateValidator == null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpSecurity.cs (2)
25Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString())); 78Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (2)
115Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); 126Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
73Fx.Assert(_bufferState == BufferState.Reading, "Buffer size shuold only be retrieved during Reading state");
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (1)
94Fx.Assert(j > i, "Logic error in XmlUtil.Trim().");