731 references to Fx
dotnet-svcutil-lib (731)
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\ExtensionDataReader.cs (10)
343Fx.Assert("ExtensionDataReader in invalid state"); 358Fx.Assert("ExtensionDataReader Name property should only be called for IXmlSerializable"); 371Fx.Assert("ExtensionDataReader HasValue property should only be called for IXmlSerializable"); 384Fx.Assert("ExtensionDataReader BaseURI property should only be called for IXmlSerializable"); 397Fx.Assert("ExtensionDataReader NameTable property should only be called for IXmlSerializable"); 408Fx.Assert("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 418Fx.Assert("ExtensionDataReader GetAttribute method should only be called for IXmlSerializable"); 428Fx.Assert("ExtensionDataReader MoveToAttribute method should only be called for IXmlSerializable"); 440Fx.Assert("ExtensionDataReader ResolveEntity method should only be called for IXmlSerializable"); 450Fx.Assert("ExtensionDataReader ReadAttributeValue method should only be called for IXmlSerializable");
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 (17)
40[Fx.Tag.SecurityNote(Critical = "Called after applying the user context on the stack or (potentially) " + 45[Fx.Tag.SecurityNote(Critical = "Access critical field context and critical property " + 55throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled)); 61[Fx.Tag.SecurityNote(Critical = "Calls into critical static method ScheduleCallback")] 66Fx.Assert(callback != null, "Cannot schedule a null callback"); 73[Fx.Tag.SecurityNote(Critical = "Stores a delegate to a critical method")] 88[Fx.Tag.SecurityNote(Critical = "Called by the scheduler without any user context on the stack")] 98[Fx.Tag.SecurityNote(Critical = "Stores a delegate that will be called later, at a particular context")] 101[Fx.Tag.SecurityNote(Critical = "Stores an object that will be passed to the delegate that will be " + 110[Fx.Tag.SecurityNote(Critical = "Access critical fields callback and state", 115Fx.Assert(callback != null, "Shouldn't instantiate an object to wrap a null callback"); 124if (Fx.Trace.IsEnd2EndActivityTracingEnabled) 127if (TraceCore.ActionItemScheduledIsEnabled(Fx.Trace)) 129TraceCore.ActionItemScheduled(Fx.Trace, _eventTraceActivity); 134[Fx.Tag.SecurityNote(Critical = "Implements a the critical abstract ActionItem.Invoke method, " + 139if (_flowLegacyActivityId || Fx.Trace.IsEnd2EndActivityTracingEnabled) 148[Fx.Tag.SecurityNote(Critical = "Implements a the critical abstract Trace method, " +
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AssertHelper.cs (4)
27[Fx.Tag.SecurityNote(Critical = "Calls into various critical methods", 34if (Fx.AssertsFailFast) 38Fx.Exception.TraceFailFast(message); 48if (Fx.IsFatal(exception))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (20)
13[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.ManualResetEvent, SupportsAsync = true, ReleaseMethod = "Complete")] 26[Fx.Tag.SynchronizationObject] 29[Fx.Tag.SynchronizationObject(Blocking = false)] 116throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType()))); 131if (Fx.IsFatal(exception)) 143Fx.Assert(_manualResetEvent == null, "No ManualResetEvent should be created for a synchronous AsyncResult."); 175if (Fx.IsFatal(e)) 180throw Fx.Exception.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e)); 196throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 223if (Fx.IsFatal(e)) 265AsyncResult.s_asyncCompletionWrapperCallback = Fx.ThunkCallback(new AsyncCallback(AsyncCompletionWrapperCallback)); 293throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 326throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType()))); 338throw Fx.Exception.AsError(new InvalidOperationException(message)); 341[Fx.Tag.Blocking(Conditional = "!asyncResult.isCompleted")] 347throw Fx.Exception.ArgumentNull("result"); 354throw Fx.Exception.Argument("result", InternalSR.InvalidAsyncResult); 359throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded)); 377throw Fx.Exception.AsError(asyncResult._exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (22)
11[Fx.Tag.Cache(typeof(byte), Fx.Tag.CacheAttrition.None, Scope = Fx.Tag.Strings.ExternallyManaged, 12SizeLimit = Fx.Tag.Strings.ExternallyManaged)] 14[Fx.Tag.Queue(typeof(byte), SizeLimit = "BufferedOutputStream(maxSize)", 82throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 86throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 97Fx.Assert(!_initialized, "Clear must be called before re-initializing stream"); 160throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 165throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 170throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 175throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 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."); 238throw Fx.Exception.ArgumentOutOfRange("size", size, InternalSR.ValueMustBeNonNegative); 243throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 249throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 278Fx.Assert(_initialized, "Cannot write to uninitialized stream"); 279Fx.Assert(!_bufferReturned, "Cannot write to stream once ToArray has been called."); 283throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSize));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\CallbackException.cs (3)
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\CompletedAsyncResult.cs (6)
16[Fx.Tag.GuaranteeNonBlocking] 19Fx.AssertAndThrowFatal(result.IsCompleted, "CompletedAsyncResult was not completed!"); 35[Fx.Tag.GuaranteeNonBlocking] 38Fx.AssertAndThrowFatal(result.IsCompleted, "CompletedAsyncResult<T> was not completed!"); 57[Fx.Tag.GuaranteeNonBlocking] 60Fx.AssertAndThrowFatal(result.IsCompleted, "CompletedAsyncResult<T> was not completed!");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (9)
28[Fx.Tag.SecurityNote(Critical = "This determines the event source name.")] 45[Fx.Tag.SecurityNote(Critical = "Access critical eventSourceName field", 53[Fx.Tag.SecurityNote(Critical = "This determines the event source name.")] 71[Fx.Tag.SecurityNote(Critical = "Satisfies a LinkDemand for 'PermissionSetAttribute' on type 'Process' when calling method GetCurrentProcess", 85[Fx.Tag.SecurityNote(Critical = "Satisfies a LinkDemand for 'PermissionSetAttribute' on type 'Process' when calling method GetCurrentProcess", 129[Fx.Tag.SecurityNote(Critical = "Sets global event handlers for the AppDomain", 199[Fx.Tag.SecurityNote(Critical = "Calls unsafe methods, UnsafeCreateEventLogger and UnsafeLogEvent.", 211[Fx.Tag.SecurityNote(Critical = "gets the CorrelationManager, which does a LinkDemand for UnmanagedCode", 221[Fx.Tag.SecurityNote(Critical = "gets the CorrelationManager, which does a LinkDemand for UnmanagedCode",
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (14)
26[Fx.Tag.SecurityNote(Critical = "setting critical field defaultEtwProviderId")] 36[Fx.Tag.SecurityNote(Critical = "Access critical etwProvider, eventSourceName field")] 45[Fx.Tag.SecurityNote(Critical = "reading critical field defaultEtwProviderId", Safe = "Doesn't leak info\\resources")] 53[Fx.Tag.SecurityNote(Critical = "setting critical field defaultEtwProviderId")] 66[Fx.Tag.SecurityNote(Critical = "Access critical etwProvider field", 78[Fx.Tag.SecurityNote(Critical = "Access critical etwProvider field", 89[Fx.Tag.SecurityNote(Critical = "Access critical etwProvider field", 98[Fx.Tag.SecurityNote(Critical = "Accesses the security critical etwProvider field", Safe = "Doesn't leak info\\resources")] 105[Fx.Tag.SecurityNote(Critical = "Usage of EventDescriptor, which is protected by a LinkDemand")] 125[Fx.Tag.SecurityNote(Critical = "Access critical transferEventDescriptor field, as well as other critical methods", 132[Fx.Tag.SecurityNote(Critical = "Usage of EventDescriptor, which is protected by a LinkDemand")] 220[Fx.Tag.SecurityNote(Critical = "Usage of EventDescriptor, which is protected by a LinkDemand", 228[Fx.Tag.SecurityNote(Critical = "Usage of EventDescriptor, which is protected by a LinkDemand", 468Fx.Assert(sb != null, "'sb' MUST NOT be NULL.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventDescriptor.cs (4)
42throw Fx.Exception.ArgumentOutOfRange("id", id, InternalSR.ValueMustBeNonNegative); 47throw Fx.Exception.ArgumentOutOfRange("id", id, string.Empty); 59throw Fx.Exception.ArgumentOutOfRange("task", task, InternalSR.ValueMustBeNonNegative); 64throw Fx.Exception.ArgumentOutOfRange("task", task, string.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (3)
50[Fx.Tag.SecurityNote(Critical = "Critical because the CorrelationManager property has a link demand on UnmanagedCode.", 58[Fx.Tag.SecurityNote(Critical = "Critical because the CorrelationManager property has a link demand on UnmanagedCode.", 70[Fx.Tag.SecurityNote(Critical = "Critical because the CorrelationManager property has a link demand on UnmanagedCode.",
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (8)
25Fx.Assert(diagnosticTrace != null, "'diagnosticTrace' MUST NOT be NULL."); 81Fx.Assert(targetInvocationException != null, "targetInvocationException cannot be null."); 85if (Fx.IsFatal(targetInvocationException)) 125Fx.Assert(aggregateException != null, "aggregateException cannot be null."); 129if (Fx.IsFatal(aggregateException)) 164Fx.Assert(innerExceptions.Count > 0, "InnerException.Count is known to be > 0 here."); 221[Fx.Tag.SecurityNote(Critical = "Calls 'System.Runtime.Interop.UnsafeNativeMethods.IsDebuggerPresent()' which is a P/Invoke method", 237[Fx.Tag.SecurityNote(Critical = "Calls into critical method UnsafeNativeMethods.IsDebuggerPresent and UnsafeNativeMethods.DebugBreak",
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (2)
20Fx.Assert(innerException == null || !Fx.IsFatal(innerException), "FatalException can't be used to wrap fatal exceptions.");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (37)
34[Fx.Tag.SecurityNote(Critical = "This delegate is called from within a ConstrainedExecutionRegion, must not be settable from PT code")] 64[Fx.Tag.SecurityNote(Critical = "Accesses SecurityCritical field EtwProvider", 78[Fx.Tag.SecurityNote(Critical = "access critical field", Safe = "ok for get-only access")] 82return Fx.s_asynchronousThreadExceptionHandler; 85[Fx.Tag.SecurityNote(Critical = "sets a critical field")] 89Fx.s_asynchronousThreadExceptionHandler = value; 120Fx.Assert(description); 136Fx.Assert(description); 151[Fx.Tag.SecurityNote(Critical = "Calls into critical method Environment.FailFast", 157Fx.Assert(description); 166Fx.Exception.TraceFailFast(failFastMessage); 240if (!Fx.s_breakOnExceptionTypesRetrieved) 243if (TryGetDebugSwitch(Fx.BreakOnExceptionTypesName, out value)) 255Fx.s_breakOnExceptionTypesCache = types.ToArray(); 259Fx.s_breakOnExceptionTypesRetrieved = true; 261return Fx.s_breakOnExceptionTypesCache; 349Fx.Exception.AsError(exception); 365Fx.Exception.AsError(exception); 372[Fx.Tag.SecurityNote(Miscellaneous = "Must not call into PT code as it is called within a CER.")] 379Fx.Exception.TraceUnhandledException(exception); 392[Fx.Tag.SecurityNote(Miscellaneous = "Must not call into PT code as it is called within a CER.")] 398Fx.Assert("Null exception in HandleAtThreadBase."); 406ExceptionHandler handler = Fx.AsynchronousThreadExceptionHandler; 434UpdateLevel(Fx.Trace); 439[Fx.Tag.SecurityNote(Miscellaneous = "Must not call into PT code as it is called within a CER.")] 577throw Fx.Exception.ArgumentNull("elementType"); 618throw Fx.Exception.ArgumentNull("elementType"); 652throw Fx.Exception.ArgumentNullOrEmpty("limit"); 814throw Fx.Exception.ArgumentNull("exceptionType"); 818throw Fx.Exception.ArgumentNullOrEmpty("diagnosis"); 915[Fx.Tag.SecurityNote(Critical = "Make these safe to use in SecurityCritical contexts.")] 919[Fx.Tag.SecurityNote(Critical = "Accesses critical field.", Safe = "Data provided by caller.")] 928[Fx.Tag.SecurityNote(Critical = "Accesses critical field.", Safe = "Data is not privileged.")] 950[Fx.Tag.SecurityNote(Critical = "Calls PrepareConstrainedRegions which has a LinkDemand", 962if (!Fx.HandleAtThreadBase(exception)) 983[Fx.Tag.SecurityNote(Critical = "Calls PrepareConstrainedRegions which has a LinkDemand", 995if (!Fx.HandleAtThreadBase(exception))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (44)
10[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.PrivatePrimitive, SupportsAsync = true, ReleaseMethod = "Dispatch")] 20[Fx.Tag.SynchronizationObject(Blocking = false, Kind = Fx.Tag.SynchronizationKind.LockStatement)] 23[Fx.Tag.SynchronizationObject] 26[Fx.Tag.SynchronizationObject] 41Fx.Assert(asyncCallbackGenerator != null, "use default ctor if you don't have a generator"); 145[Fx.Tag.Blocking(CancelMethod = "Close")] 152throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 158[Fx.Tag.Blocking(CancelMethod = "Close")] 270[Fx.Tag.Blocking(CancelMethod = "Close", Conditional = "!result.IsCompleted")] 284[Fx.Tag.Blocking(CancelMethod = "Close", Conditional = "!result.IsCompleted")] 291throw Fx.Exception.AsError(new TimeoutException()); 297[Fx.Tag.Blocking(CancelMethod = "Dispatch", Conditional = "!result.IsCompleted")] 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"); 391[Fx.Tag.Blocking(CancelMethod = "Dispatch")] 571Fx.Assert(state != null, "InputQueue.OnInvokeDequeuedCallback: (state != null)"); 700Fx.Assert(reader != null, "InputQueue.RemoveReader: (reader != null)"); 787throw Fx.Exception.AsError(_exception); 793[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.AsyncResult, SupportsAsync = true, ReleaseMethod = "Set")] 818[Fx.Tag.Blocking(Conditional = "!result.IsCompleted", CancelMethod = "Set")] 855[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.AsyncResult, SupportsAsync = true, ReleaseMethod = "Set")] 861[Fx.Tag.SynchronizationObject(Blocking = false)] 883[Fx.Tag.Blocking(Conditional = "!result.IsCompleted", CancelMethod = "Set")] 951Fx.AssertAndThrow(_totalCount != _pendingCount, "ItemQueue does not contain any available items"); 968Fx.AssertAndThrow(_pendingCount != 0, "ItemQueue does not contain any pending items"); 974Fx.AssertAndThrow(_totalCount != 0, "ItemQueue does not contain any items"); 999[Fx.Tag.SynchronizationObject(Blocking = false)] 1000[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.ManualResetEvent, ReleaseMethod = "Set")] 1007[Fx.Tag.SynchronizationObject] 1021Fx.Assert(_item == null, "InputQueue.WaitQueueReader.Set: (this.item == null)"); 1022Fx.Assert(_exception == null, "InputQueue.WaitQueueReader.Set: (this.exception == null)"); 1030[Fx.Tag.Blocking(CancelMethod = "Set")] 1062throw Fx.Exception.AsError(_exception); 1069[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.ManualResetEvent, ReleaseMethod = "Set")] 1074[Fx.Tag.SynchronizationObject] 1092[Fx.Tag.Blocking(CancelMethod = "Set")]
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (13)
35Fx.Assert(maxBufferPoolSize > 0 && maxBufferSize >= 0, "bad params, caller should verify"); 119if (TraceCore.BufferPoolChangeQuotaIsEnabled(Fx.Trace)) 121TraceCore.BufferPoolChangeQuota(Fx.Trace, bufferPool.BufferSize, delta); 214Fx.Assert(buffer != null, "caller must verify"); 222throw Fx.Exception.Argument("buffer", InternalSR.BufferIsNotRightSizeForBufferManager); 234Fx.Assert(bufferSize >= 0, "caller must ensure a non-negative argument"); 257if (TraceCore.BufferPoolAllocationIsEnabled(Fx.Trace)) 259TraceCore.BufferPoolAllocation(Fx.Trace, bufferPool.BufferSize); 262returnValue = Fx.AllocateByteArray(bufferPool.BufferSize); 267if (TraceCore.BufferPoolAllocationIsEnabled(Fx.Trace)) 269TraceCore.BufferPoolAllocation(Fx.Trace, bufferSize); 272returnValue = Fx.AllocateByteArray(bufferSize); 532return Fx.AllocateByteArray(bufferSize);
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\ScheduleActionItemAsyncResult.cs (1)
34if (Fx.IsFatal(ex))
FrameworkFork\System.ServiceModel\Internals\System\Runtime\SignalGate.cs (7)
9[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.NonBlocking)] 12[Fx.Tag.SynchronizationObject(Blocking = false, Kind = Fx.Tag.SynchronizationKind.InterlockedNoSpin)] 85throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit)); 96[Fx.Tag.SynchronizationPrimitive(Fx.Tag.BlocksUsing.NonBlocking)]
FrameworkFork\System.ServiceModel\Internals\System\Runtime\SynchronizedPool.cs (3)
10[Fx.Tag.SynchronizationObject(Blocking = false)] 335[Fx.Tag.SecurityNote(Critical = "Asserts in order to get the processor count from the environment", Safe = "This data isn't actually protected so it's ok to leak")] 342[Fx.Tag.SynchronizationObject(Blocking = false)]
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (3)
23throw Fx.Exception.AsError<TException>(task.Exception); 223if (Fx.IsFatal(ex) || exceptionConverter == null) 233throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Ticks.cs (1)
13[Fx.Tag.SecurityNote(Miscellaneous = "Why isn't the SuppressUnmanagedCodeSecurity attribute working in this case?")]
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (2)
193throw Fx.Exception.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBeNonNegative(argumentName, timeout)); 206throw Fx.Exception.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBePositive(argumentName, timeout));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (3)
38throw Fx.Exception.ArgumentNull("query"); 43throw Fx.Exception.ArgumentNull("encoding"); 366Fx.Assert(n < 0x10, "n < 0x10");
FrameworkFork\System.ServiceModel\SMDiagnostics\DiagnosticUtility.cs (1)
74throw Fx.Exception.AsError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (2)
71return fatal ? Fx.AssertAndThrowFatal("Fatal InternalException should never be thrown.") : Fx.AssertAndThrow("InternalException should never be thrown.");
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
85byte[] copy = Fx.AllocateByteArray(len);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (6)
31throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToGetToken, this))); 40throw Fx.Exception.ArgumentNull("tokenToBeRenewed"); 45throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToRenewToken, this))); 54throw Fx.Exception.ArgumentNull("token"); 64throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this))); 69throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (3)
123throw Fx.Exception.ArgumentOutOfRange("value", value, SRServiceModel.ValueMustBeNonNegative); 151throw Fx.Exception.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementDoesNotContainProperty, propertyName)); 166throw Fx.Exception.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementHasInvalidTypeForProperty, propertyName, dictionaryValue.GetType(), typeof(TValue)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
212if (Fx.IsFatal(e)) 261if (Fx.IsFatal(e)) 302if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyType.cs (1)
30throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
28throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\UserNameSecurityToken.cs (2)
25throw Fx.Exception.ArgumentNull("userName"); 28throw Fx.Exception.Argument("userName", SRServiceModel.UserNameCannotBeEmpty);
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionMismatchAddressingException.cs (1)
40Fx.Assert(messageVersion.Addressing == AddressingVersion.WSAddressing10, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpMessageSecurity.cs (2)
69Fx.Assert("Unsupported basic http message credential type"); 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 (3)
100[Fx.Tag.FriendAccessAllowed("System.ServiceModel.Activities")] 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\BinaryMessageEncoder.cs (4)
1617if (Fx.IsFatal(e)) 1630if (Fx.IsFatal(e)) 1649if (Fx.IsFatal(e)) 1670if (Fx.IsFatal(e))
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\BufferedConnection.cs (2)
81if (Fx.IsFatal(e)) 202_writeBuffer = Fx.AllocateByteArray(_writeBufferSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (4)
19private static AsyncCallback s_begin1Callback = Fx.ThunkCallback(new AsyncCallback(Begin1Callback)); 20private static AsyncCallback s_begin2Callback = Fx.ThunkCallback(new AsyncCallback(Begin2Callback)); 68if (Fx.IsFatal(exception)) 111if (Fx.IsFatal(exception))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
219if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (3)
15private static AsyncCallback s_nestedCallback = Fx.ThunkCallback(new AsyncCallback(Callback)); 42if (Fx.IsFatal(e)) 69if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (14)
215throw Fx.AssertAndThrow("CommunicationObject.BeginClose: Unknown CommunicationState"); 282throw Fx.AssertAndThrow("DoneReceivingInCurrentState: Unknown CommunicationObject.state"); 388if (Fx.IsFatal(exception)) 417if (Fx.IsFatal(exception)) 443if (Fx.IsFatal(exception)) 472if (Fx.IsFatal(exception)) 494if (Fx.IsFatal(exception)) 527throw Fx.AssertAndThrow("ThrowIfFaulted: Unknown CommunicationObject.state"); 576throw Fx.AssertAndThrow("ThrowIfClosed: Unknown CommunicationObject.state"); 610throw Fx.AssertAndThrow("ThrowIfDisposed: Unknown CommunicationObject.state"); 639throw Fx.AssertAndThrow("ThrowIfClosedOrOpened: Unknown CommunicationObject.state"); 668throw Fx.AssertAndThrow("ThrowIfDisposedOrImmutable: Unknown CommunicationObject.state"); 697throw Fx.AssertAndThrow("ThrowIfDisposedOrNotOpen: Unknown CommunicationObject.state"); 732throw Fx.AssertAndThrow("ThrowIfClosedOrNotOpen: Unknown CommunicationObject.state");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
140_preReadData = Fx.AllocateByteArray(initialSize + _preReadCount); 478_asyncReadBuffer = Fx.AllocateByteArray(_innerStream.Connection.AsyncReadBufferSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionBufferPool.cs (1)
52return Fx.AllocateByteArray(_bufferSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
519if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (4)
146if (Fx.IsFatal(e)) 151Fx.Exception.TraceUnhandledException(e); 468if (Fx.IsFatal(exception)) 708if (Fx.IsFatal(exception))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\EncoderHelpers.cs (1)
58Fx.Assert("invalid quota type.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (2)
208byte[] startBytes = Fx.AllocateByteArray(startSize); 494byte[] faultBuffer = Fx.AllocateByteArray(FaultStringDecoder.FaultSizeQuota);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (1)
136_encodedBytes = Fx.AllocateByteArray(_encodedSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (1)
58_encodedBytes = Fx.AllocateByteArray(checked(1 + sizeByteCount + valueByteCount));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
382throw Fx.AssertAndThrow("CreateAndOpenTokenProvider: Invalid authentication scheme");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
106throw Fx.AssertAndThrow("GetCredential: Invalid authentication scheme"); 167byte[] responseBuffer = Fx.AllocateByteArray(checked((int)bufferSize));
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 (3)
168Fx.Assert(messageHandler != null, "httpMessageHandler should not be null."); 188Fx.Assert(_sslCertificateValidator != null, "sslCertificateAuthentidation should not be null."); 202if (Fx.IsFatal(ex))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
226if (Fx.IsFatal(e)) 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 (6)
138throw Fx.AssertAndThrow("LifetimeManager.DecrementBusyCount: (this.busyCount > 0)"); 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 (16)
102Fx.Assert(SRServiceModel.InvalidMessageState); 303Fx.Assert(SRServiceModel.InvalidMessageState); 530Fx.Assert(SRServiceModel.InvalidMessageState); 674Fx.Assert(SRServiceModel.InvalidMessageState); 759Fx.Assert("Message.WriteSharedHeaderPrefixes: (prefixString.Length == 1) -- IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix."); 766Fx.Assert("Message.WriteSharedHeaderPrefixes: (prefixIndex >= 0 && prefixIndex < 26) -- IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix."); 788Fx.Assert(message != null, "message should never be null"); 1035if (Fx.IsFatal(e)) 1047if (Fx.IsFatal(e)) 1326if (Fx.IsFatal(e)) 1337if (Fx.IsFatal(e)) 1352if (Fx.IsFatal(e)) 1612if (Fx.IsFatal(e)) 1623if (Fx.IsFatal(e)) 1638if (Fx.IsFatal(e)) 1655if (Fx.IsFatal(e))
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\MessageProperties.cs (1)
682Fx.Assert("");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageVersion.cs (2)
166Fx.Assert("Invalid (null) messageVersion value"); 171Fx.Assert("Invalid (null) addressing value");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (2)
15private static AsyncCallback s_nestedCallback = Fx.ThunkCallback(new AsyncCallback(Callback)); 60if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
103throw Fx.AssertAndThrow("Argument assertion cannot be null.");
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 (12)
673Fx.Assert(channel != null, "'channel' MUST NOT be NULL."); 674Fx.Assert(operation != null, "'operation' MUST NOT be NULL."); 827throw Fx.AssertAndThrowFatal("ServiceChannel.DecrementActivity: (updatedActivityCount >= 0)"); 1654private static AsyncCallback s_ensureInteractiveInitCallback = Fx.ThunkCallback(EnsureInteractiveInitCallback); 1655private static AsyncCallback s_ensureOpenCallback = Fx.ThunkCallback(EnsureOpenCallback); 1656private static AsyncCallback s_sendCallback = Fx.ThunkCallback(SendCallback); 1713if (Fx.IsFatal(e) || completedSynchronously) 1742if (Fx.IsFatal(e) || completedSynchronously) 1778if (Fx.IsFatal(e) || completedSynchronously) 1817if (Fx.IsFatal(e)) 1874if (Fx.IsFatal(e)) 1936Fx.Assert("non-MaxValue timeout for displaying interactive initialization UI");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
152Fx.Assert("Invalid proxy method type");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
199_buffer = Fx.AllocateByteArray(_connection.AsyncReadBufferSize);
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 (3)
343Fx.Assert(request.RequestUri.Scheme == UriEx.UriSchemeHttps, 349Fx.Assert(remoteCertificateIdentity.Certificates.Count <= 1, 456Fx.Assert("unknown authentication level");
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 (31)
16private static readonly AsyncCallback s_streamedWriteCallback = Fx.ThunkCallback(StreamWriteCallback); 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."); 144if (Fx.IsFatal(ex)) 151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout))); 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."); 312if (Fx.IsFatal(ex) || success) 338Fx.Assert(_cleanupStatus == WebSocketHelper.OperationFinished, 365if (Fx.IsFatal(e)) 382if (Fx.IsFatal(e)) 451if (Fx.IsFatal(ex)) 597Fx.Assert(newSize > 0, "buffer size should be larger than zero."); 625Fx.Assert(result != null, "Result should not be null"); 639if (Fx.IsFatal(ex)) 723Fx.Assert(_receiveTask == null || _receiveTask.Task.IsCompleted, "this.receiveTask is not completed."); 726Fx.Assert(currentState == AsyncReceiveState.Finished, "currentState is not AsyncReceiveState.Finished: " + currentState); 787if (Fx.IsFatal(ex)) 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."); 1064if (Fx.IsFatal(ex)) 1071throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(ReadTimeout)))); 1144if (Fx.IsFatal(ex)) 1151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(WriteTimeout)))); 1218if (Fx.IsFatal(ex)) 1225throw Fx.Exception.AsError( 1283if (Fx.IsFatal(ex)) 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 (4)
23private static AsyncCallback s_onAsyncCallCompleted = Fx.ThunkCallback(new AsyncCallback(OnAsyncCallCompleted)); 428if (Fx.IsFatal(e)) 457if (Fx.IsFatal(e)) 566Fx.Assert(retArgs.Length == inArgs.Length, "retArgs.Length should be equal to inArgs.Length");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (9)
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); 176Fx.Assert("Invalid client generation constructor table initialization"); 184Fx.Assert("Invalid client generation constructor table initialization"); 912Fx.Assert(eventAsyncMethodPosition != -1,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
198Fx.Assert(String.Format(CultureInfo.InvariantCulture, "Cannot find DataContract attribute for {0}", messageName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (2)
208throw Fx.AssertAndThrowFatal("DispatcherBuilder.BindOperations: ((proxy == null) != (dispatch == null))"); 226Fx.Assert(proxyOperation != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (1)
264Fx.Assert("each set must have at least one item in it");
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\MetadataExchangeClient.cs (16)
634if (Fx.IsFatal(e)) 754if (Fx.IsFatal(e)) 802if (Fx.IsFatal(e)) 814if (Fx.IsFatal(e)) 831if (Fx.IsFatal(e)) 854IAsyncResult result = request.BeginGetResponse(Fx.ThunkCallback(new AsyncCallback(this.GetResponseCallback)), request); 888if (Fx.IsFatal(e)) 962if (Fx.IsFatal(e)) 976if (Fx.IsFatal(e)) 1015if (Fx.IsFatal(e)) 1065if (Fx.IsFatal(e)) 1091IAsyncResult result = metadataClient.BeginGet(_message, Fx.ThunkCallback(new AsyncCallback(this.RequestCallback)), metadataClient); 1120if (Fx.IsFatal(e)) 1175if (Fx.IsFatal(e)) 1207IAsyncResult result = retriever.BeginRetrieve(_resolveCallState.TimeoutHelper, Fx.ThunkCallback(new AsyncCallback(this.RetrieveCallback)), retriever); 1244if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (1)
64if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (1)
103if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
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)); 1030Fx.Assert(String.Format(System.Globalization.CultureInfo.InvariantCulture, "Attribute generation is not supported for argument type {0}", type));
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 (3)
149Fx.Assert("Too Many Names"); 197Fx.Assert(null != localName, ""); 476if (Fx.IsFatal(e))
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 (9)
158Fx.Assert(contractType != null, ""); 165Fx.Assert(contractType != null, ""); 166Fx.Assert(serviceType != null, ""); 173Fx.Assert(contractType != null, ""); 174Fx.Assert(serviceType != null, ""); 175Fx.Assert(serviceImplementation != null, ""); 495Fx.Assert("Invalid state. No exception for canHaveBehaviors = false"); 661Fx.Assert(NamingHelper.IsValidNCName(operationName), "operationName value has to be a valid NCName."); 681Fx.Assert("bad contract inheritance");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\UniqueCodeIdentifierScope.cs (1)
31Fx.Assert(IsUnique(identifier), "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (3)
973Fx.Assert("You must pass at least one namespaceScope"); 1179if (Fx.IsFatal(e)) 1194if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (20)
230Fx.Assert("WsdlImporter.ImportEndpoints(ContractDescription contract): !this.KnownContracts.ContainsKey(WsdlExporter.WsdlNamingHelper.GetPortTypeQName(contract))"); 344if (Fx.IsFatal(e)) 410if (Fx.IsFatal(e)) 425if (Fx.IsFatal(e)) 482if (Fx.IsFatal(e)) 567if (Fx.IsFatal(e)) 622if (Fx.IsFatal(e)) 674if (Fx.IsFatal(e)) 693if (Fx.IsFatal(e)) 709if (Fx.IsFatal(e)) 894Fx.AssertAndFailFast("Unexpected MatchResult value."); 1231Fx.Assert("Unsupported WSDL OM (More than 2 OperationMessages encountered in an Operation or WsdlOM is invalid)"); 1752Fx.Assert("GetElementName Method should be updated to support " + item.GetType()); 1774Fx.Assert(rest != null, "GetXPathParameters Method should never set rest to null. this happened for: " + item.GetType()); 1850Fx.Assert("Unsupported WSDL OM: unknown WsdlNS.MessageBinding: " + item.GetType()); 1860Fx.Assert("GetXPathParameters Method should be updated to support " + item.GetType()); 2238if (Fx.IsFatal(e)) 2257if (Fx.IsFatal(e)) 2273if (Fx.IsFatal(e)) 2466Fx.Assert("CreateIdXPath always called with a valid key");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (5)
50Fx.Assert(reflector != null, ""); 242Fx.Assert(parent != null, ""); 243Fx.Assert(operation != null, ""); 244Fx.Assert(attr != null, ""); 672[Fx.Tag.SecurityNote(Critical = "XmlSerializer.FromMappings has a LinkDemand.",
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ActivityIdHeader.cs (3)
56if (Fx.IsFatal(e)) 85correlationId = Fx.CreateGuid(reader.GetAttribute("CorrelationId", null)); 95if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (1)
82[Fx.Tag.SecurityNote(Critical = "This sets the ActivityId on the thread. Must not be settable from PT code unless from safe context.")]
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\Diagnostics\TraceUtility.cs (5)
39if (Fx.IsFatal(e)) 56if (Fx.IsFatal(e)) 279[Fx.Tag.SecurityNote(Critical = "Calls critical method DiagnosticSection.UnsafeGetSection.", 316[Fx.Tag.SecurityNote(Critical = "Calls critical method DiagnosticSection.UnsafeGetSection.", 573return Fx.ThunkCallback(new AsyncCallback(this.ExecuteUserCode));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (5)
17private static AsyncCallback s_tryReceiveCallback = Fx.ThunkCallback(new AsyncCallback(TryReceiveCallback)); 21[Fx.Tag.SynchronizationObject(Blocking = true, Kind = Fx.Tag.SynchronizationKind.InterlockedNoSpin)] 200if (Fx.IsFatal(exception)) 242if (Fx.IsFatal(exception))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
348if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (23)
31private static AsyncCallback s_onAsyncReplyComplete = Fx.ThunkCallback(new AsyncCallback(ChannelHandler.OnAsyncReplyComplete)); 32private static AsyncCallback s_onAsyncReceiveComplete = Fx.ThunkCallback(new AsyncCallback(ChannelHandler.OnAsyncReceiveComplete)); 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"); 257Fx.Assert("System.ServiceModel.Dispatcher.ChannelHandler.Dispatch(): (channel == null || dispatchBehavior == null)"); 267Fx.Assert("ChannelHandler.Dispatch (operation == null)"); 307if (Fx.IsFatal(e)) 521Fx.Assert(SRServiceModel.SFxNonExceptionThrown); 564if (Fx.IsFatal(e1)) 588if (Fx.IsFatal(e2)) 600if (Fx.IsFatal(e3)) 623if (Fx.IsFatal(e4)) 698Fx.Assert("ChannelHandler.HandleRequest: this.requestInfo.RequestContext != null"); 776if (Fx.IsFatal(e)) 888if (Fx.IsFatal(e)) 949if (Fx.IsFatal(e)) 985if (Fx.IsFatal(e)) 1034if (Fx.IsFatal(e)) 1048if (Fx.IsFatal(e)) 1062if (Fx.IsFatal(e)) 1087if (Fx.IsFatal(e)) 1169if (Fx.IsFatal(e)) 1204if (Fx.IsFatal(e))
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\ConcurrencyBehavior.cs (2)
194Fx.Assert("ConcurrencyBehavior resumed more than once for same call."); 199if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
19private static AsyncCallback s_invokeCallback = Fx.ThunkCallback(DispatchOperationRuntime.InvokeCallback);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (2)
49Fx.Assert(!shared.IsOnServer, "Client constructor called on server?"); 396if (Fx.IsFatal(ex))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (26)
34Fx.Assert(channel != null, "caller must verify"); 35Fx.Assert(correlator != null, "caller must verify"); 75Fx.Assert("DuplexChannelBinder.ChannelHandler: (channelHandler != null)"); 83Fx.Assert("DuplexChannelBinder.ChannelHandler: (channelHandler == null)"); 378IAsyncResult result = _channel.BeginSend(message, timeout, Fx.ThunkCallback(new AsyncCallback(this.SendCallback)), duplexRequest); 556Fx.Assert(request != null, "request cannot be null"); 563Fx.Assert(request != null, "request cannot be null"); 606Fx.Assert("DuplexChannelBinder.RequestCallback: (duplexRequest != null)"); 678s_onSend = Fx.ThunkCallback(new AsyncCallback(OnSend)); 713if (Fx.IsFatal(exception)) 752Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request"); 856Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request"); 933if (Fx.IsFatal(e)) 1152s_receiveAsyncCallback = Fx.ThunkCallback(new AsyncCallback(ReceiveAsyncCallback)); 1163if (Fx.IsFatal(e)) 1214if (Fx.IsFatal(e)) 1257s_closeInnerChannelCallback = Fx.ThunkCallback(new AsyncCallback(CloseInnerChannelCallback)); 1263if (Fx.IsFatal(e)) 1303if (Fx.IsFatal(e)) 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\ErrorBehavior.cs (2)
53Fx.Assert("System.ServiceModel.Dispatcher.ErrorBehavior.ProvideMessageFaultCore(): (this.messageVersion != rpc.RequestVersion)"); 200if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (4)
29if (Fx.IsFatal(e)) 86if (Fx.IsFatal(e)) 122if (Fx.IsFatal(e)) 169if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
189Fx.Assert(serializer != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (7)
103if (Fx.IsFatal(e)) 132if (Fx.IsFatal(e)) 170if (Fx.IsFatal(e)) 218if (Fx.IsFatal(e)) 246private static AsyncCallback s_callback = Fx.ThunkCallback(new AsyncCallback(DisplayInitializationUIAsyncResult.Callback)); 276if (Fx.IsFatal(e)) 334if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (18)
47private static AsyncCallback s_onReplyCompleted = Fx.ThunkCallback(new AsyncCallback(OnReplyCompletedCallback)); 140if (Fx.IsFatal(e)) 180if (Fx.IsFatal(e)) 224if (Fx.IsFatal(e)) 316if (Fx.IsFatal(e)) 348if (Fx.IsFatal(e)) 511if (Fx.IsFatal(e)) 580if (Fx.IsFatal(e)) 611if (Fx.IsFatal(e)) 644if (Fx.IsFatal(e)) 694Fx.Assert( 724if (Fx.IsFatal(e)) 768if (Fx.IsFatal(e)) 786if (Fx.IsFatal(e)) 800if (Fx.IsFatal(e)) 817if (Fx.IsFatal(e)) 822Fx.Assert("Exceptions should be caught by callee"); 837if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InputChannelBinder.cs (1)
22Fx.Assert("InputChannelBinder.InputChannelBinder: (channel != null)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
42if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerHandler.cs (10)
17private static AsyncCallback s_waitCallback = Fx.ThunkCallback(new AsyncCallback(ListenerHandler.WaitCallback)); 33Fx.Assert("ListenerHandler.ctor: (this.listenerBinder != null)"); 40Fx.Assert("ListenerHandler.ctor: (this.channelDispatcher != null)"); 171IAsyncResult result = duplexSession.BeginCloseOutputSession(timeout, Fx.ThunkCallback(new AsyncCallback(CloseOutputSessionCallback)), state); 177IAsyncResult result = channel.BeginClose(timeout, Fx.ThunkCallback(new AsyncCallback(CloseChannelCallback)), state); 185if (Fx.IsFatal(e)) 212if (Fx.IsFatal(e)) 236if (Fx.IsFatal(e)) 260if (Fx.IsFatal(e)) 314if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (14)
69Fx.Assert((operationContext != null), "System.ServiceModel.Dispatcher.MessageRpc.MessageRpc(), operationContext == null"); 70Fx.Assert(channelHandler != null, "System.ServiceModel.Dispatcher.MessageRpc.MessageRpc(), channelHandler == null"); 173if (Fx.IsFatal(e)) 219if (Fx.IsFatal(e)) 238if (Fx.IsFatal(e)) 257if (Fx.IsFatal(e)) 276if (Fx.IsFatal(e)) 324if (Fx.IsFatal(e2)) 361if (Fx.IsFatal(e)) 388if (Fx.IsFatal(e)) 408[Fx.Tag.SecurityNote(Critical = "Calls SecurityCritical method ApplyHostingIntegrationContext.", 453if (Fx.IsFatal(e)) 483if (Fx.IsFatal(e)) 541Fx.Assert("MessageRpc.Wrapper.Wrapper: (rpc.NextProcessor != null)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
733Fx.Assert(!_onBeginWriteBodyContentsCalled, "OnBeginWriteBodyContents has already been called");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OutputChannelBinder.cs (1)
21Fx.Assert("OutputChannelBinder.OutputChannelBinder: (channel != null)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
294Fx.Assert(bodyDescription != null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
186if (Fx.IsFatal(e)) 224if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (1)
22Fx.Assert("ReplyChannelBinder.ReplyChannelBinder: (channel != null)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\RequestChannelBinder.cs (1)
18Fx.Assert("RequestChannelBinder.RequestChannelBinder: (channel != null)");
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
286if (Fx.IsFatal(ex))
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 (3)
95Fx.Assert(instanceContext != null, "instanceContext is null !"); 111Fx.Assert(syncContext != null, "syncContext is null !?"); 133Fx.Assert("IOThreadScheduler called back twice");
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\FaultException.cs (1)
273Fx.Assert("FaultException.FaultCodeData.GetObjectData: (code != null)");
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\HttpClientCredentialType.cs (2)
60Fx.Assert("unsupported client credential type"); 87Fx.Assert("unsupported client AuthenticationScheme");
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 (4)
107Fx.Assert("unknown ClientCredentialType"); 142Fx.Assert("unknown ClientCredentialType"); 168Fx.Assert("unknown ClientCredentialType"); 219Fx.Assert(null != sbe, string.Empty);
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverTcp.cs (2)
89Fx.Assert("unknown ClientCredentialType"); 116Fx.Assert("unknown ClientCredentialType");
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (1)
303if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ChannelProtectionRequirements.cs (1)
271Fx.Assert("Only body return values are supported currently");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\EncryptedKey.cs (1)
250if (Fx.IsFatal(e) || !this.ShouldReadXmlReferenceKeyInfoClause)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
891if (!isOptional || Fx.IsFatal(e)) 909if (!isOptional || Fx.IsFatal(e)) 927if (!isOptional || Fx.IsFatal(e)) 945if (!isOptional || Fx.IsFatal(e))
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\SecurityUtils.cs (5)
158Fx.Assert("unknown token impersonation level"); 413throw Fx.AssertAndThrow("target should not be null - expecting an EndpointAddress"); 632if (Fx.IsFatal(e)) 852byte[] copy = Fx.AllocateByteArray(buffer.Length); 1084if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (6)
307Fx.Assert("Cache write lock is not held."); 344Fx.Assert(item.ExpirationTime == DateTime.MaxValue || item.ExpirationTime.Kind == DateTimeKind.Utc, ""); 369Fx.Assert("Cache write lock is not held."); 386Fx.Assert("Cache write lock is not held."); 476Fx.Assert(item1.ExpirationTime.Kind == item2.ExpirationTime.Kind, ""); 500Fx.Assert(expirationTime == DateTime.MaxValue || expirationTime.Kind == DateTimeKind.Utc, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (4)
1941if (Fx.IsFatal(e)) 2359if (Fx.IsFatal(e)) 2886if (Fx.IsFatal(e)) 2905if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
91if (Fx.IsFatal(e))
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\WSSecurityTokenSerializer.cs (1)
202if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
547if (Fx.IsFatal(e)) 557if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (1)
142Fx.Assert(_customCertificateValidator == null, "");
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (3)
137Fx.Assert("ServiceChannelManager.BeginCloseInput: (this.activityWaiter == null)"); 174Fx.Assert("ServiceChannelManager.CloseInput: (this.activityWaiter == null)"); 209Fx.Assert("ServiceChannelManager.DecrementActivityCount: (this.activityCount > 0)");
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
239Fx.Assert("key shouldn't be 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().");