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\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\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\ScheduleActionItemAsyncResult.cs (1)
34if (Fx.IsFatal(ex))
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\ClientWebSocketTransportDuplexSessionChannel.cs (1)
219if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
519if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
682Fx.Assert("");
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\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\Dispatcher\ChannelDispatcher.cs (1)
348if (Fx.IsFatal(e))
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\InstanceBehavior.cs (1)
42if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
286if (Fx.IsFatal(ex))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
91if (Fx.IsFatal(e))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
202if (Fx.IsFatal(e))