Internals\System\Runtime\ActionItem.cs (24)
22Fx.Assert(callback != null, "A null callback was passed for Schedule!");
24Fx.Trace.IsEnd2EndActivityTracingEnabled)
36Fx.Assert(callback != null, "A null callback was passed for Schedule!");
38Fx.Trace.IsEnd2EndActivityTracingEnabled)
56throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
67throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
76Fx.Assert(callback != null, "Cannot schedule a null callback");
82Fx.Assert(callback != null, "Cannot schedule a null callback");
153Fx.Assert(callback != null, "Shouldn't instantiate an object to wrap a null callback");
161if (Fx.Trace.IsEnd2EndActivityTracingEnabled)
164if (TraceCore.ActionItemScheduledIsEnabled(Fx.Trace))
166TraceCore.ActionItemScheduled(Fx.Trace, _eventTraceActivity);
173Fx.Assert(callback != null, "Shouldn't instantiate an object to wrap a null callback");
181if (Fx.Trace.IsEnd2EndActivityTracingEnabled)
184if (TraceCore.ActionItemScheduledIsEnabled(Fx.Trace))
186TraceCore.ActionItemScheduled(Fx.Trace, _eventTraceActivity);
193Fx.Assert(_asyncCallback == null, "Can't call Invoke on async ActionItem");
194if (_flowLegacyActivityId || Fx.Trace.IsEnd2EndActivityTracingEnabled)
206Fx.Assert(_callback == null, "Can't call InvokeAsync on sync ActionItem");
207if (_flowLegacyActivityId || Fx.Trace.IsEnd2EndActivityTracingEnabled)
243if (TraceCore.ActionItemCallbackInvokedIsEnabled(Fx.Trace))
245TraceCore.ActionItemCallbackInvoked(Fx.Trace, _eventTraceActivity);
287if (TraceCore.ActionItemCallbackInvokedIsEnabled(Fx.Trace))
289TraceCore.ActionItemCallbackInvoked(Fx.Trace, _eventTraceActivity);
Internals\System\Runtime\BufferedOutputStream.cs (24)
12[Fx.Tag.Cache(typeof(byte), Fx.Tag.CacheAttrition.None, Scope = Fx.Tag.Strings.ExternallyManaged,
13SizeLimit = Fx.Tag.Strings.ExternallyManaged)]
15[Fx.Tag.Queue(typeof(byte), SizeLimit = "BufferedOutputStream(maxSize)",
83throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
87throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
98Fx.Assert(!_initialized, "Clear must be called before re-initializing stream");
139throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
144throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
186throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
191throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
196throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
201throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
213Fx.Assert(_initialized, "No data to return from uninitialized stream");
214Fx.Assert(!_bufferReturned, "ToArray cannot be called more than once");
259Fx.Assert(_initialized, "Cannot write to uninitialized stream");
260Fx.Assert(!_bufferReturned, "Cannot write to stream once ToArray has been called.");
264throw Fx.Exception.ArgumentOutOfRange("size", size, InternalSR.ValueMustBeNonNegative);
269throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota));
275throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota));
304Fx.Assert(_initialized, "Cannot write to uninitialized stream");
305Fx.Assert(!_bufferReturned, "Cannot write to stream once ToArray has been called.");
309throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSize));
Internals\System\Runtime\InputQueue.cs (17)
37Fx.Assert(asyncCallbackGenerator != null, "use default ctor if you don't have a generator");
147throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout)));
159throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout)));
347throw Fx.Exception.AsError(new TimeoutException());
381Fx.Assert(exception != null, "EnqueueAndDispatch: exception parameter should not be null");
387Fx.Assert(item != null, "EnqueueAndDispatch: item parameter should not be null");
393Fx.Assert(item != null, "EnqueueWithoutDispatch: item parameter should not be null");
399Fx.Assert(exception != null, "EnqueueWithoutDispatch: exception parameter should not be null");
676Fx.Assert(state != null, "InputQueue.OnInvokeDequeuedCallback: (state != null)");
805Fx.Assert(reader != null, "InputQueue.RemoveReader: (reader != null)");
884throw Fx.Exception.AsError(Exception);
1030Fx.AssertAndThrow(ItemCount != _pendingCount, "ItemQueue does not contain any available items");
1047Fx.AssertAndThrow(_pendingCount != 0, "ItemQueue does not contain any pending items");
1053Fx.AssertAndThrow(ItemCount != 0, "ItemQueue does not contain any items");
1096Fx.Assert(_item == null, "InputQueue.WaitQueueReader.Set: (this.item == null)");
1097Fx.Assert(_exception == null, "InputQueue.WaitQueueReader.Set: (this.exception == null)");
1136throw Fx.Exception.AsError(_exception);
System\ServiceModel\Channels\Addressing.cs (7)
95Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.Action, addressingVersion.DictionaryNamespace), "");
227Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.From, addressingVersion.DictionaryNamespace), "");
321Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.FaultTo, version.DictionaryNamespace), "");
466Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.To, version.DictionaryNamespace), "");
662Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.ReplyTo, version.DictionaryNamespace), "");
741Fx.Assert(reader.IsStartElement(XD.AddressingDictionary.MessageId, version.DictionaryNamespace), "");
883Fx.Assert(reader.IsStartElement(addressingDictionary.RelatesTo, version.DictionaryNamespace), "");
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (26)
32Fx.Assert(channel != null, "caller must verify");
33Fx.Assert(correlator != null, "caller must verify");
69Fx.Assert("DuplexChannelBinder.ChannelHandler: (channelHandler != null)");
77Fx.Assert("DuplexChannelBinder.ChannelHandler: (channelHandler == null)");
370IAsyncResult result = _channel.BeginSend(message, timeout, Fx.ThunkCallback(new AsyncCallback(SendCallback)), duplexRequest);
556Fx.Assert(request != null, "request cannot be null");
563Fx.Assert(request != null, "request cannot be null");
606Fx.Assert("DuplexChannelBinder.RequestCallback: (duplexRequest != null)");
680s_onSend = Fx.ThunkCallback(new AsyncCallback(OnSend));
714if (Fx.IsFatal(exception))
753Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request");
857Fx.Assert(_requestCorrelatorKey == null, "RequestCorrelatorKey is already set for this request");
944if (Fx.IsFatal(e))
1171s_receiveAsyncCallback = Fx.ThunkCallback(new AsyncCallback(ReceiveAsyncCallback));
1182if (Fx.IsFatal(e))
1233if (Fx.IsFatal(e))
1276s_closeInnerChannelCallback = Fx.ThunkCallback(new AsyncCallback(CloseInnerChannelCallback));
1282if (Fx.IsFatal(e))
1322if (Fx.IsFatal(e))
1537Fx.Assert(_backgroundCloseData == null, "can't try twice");
1551Fx.Assert(_backgroundCloseData != null, "Only callable from background close");
1570Fx.Assert(_backgroundCloseData != null, "Need to check background close first");
1572Fx.Assert(dummy == null, "we should get an exception or null");
1577Fx.Assert(_backgroundCloseData != null, "Need to check background close first");
1583Fx.Assert(_backgroundCloseData != null, "Need to check background close first");
1585Fx.Assert(dummy == null, "we should get an exception or null");