FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (35)
103throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this);
109throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this);
177throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
190throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this);
196throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this);
264throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
267throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
346throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this);
353throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpened"), Guid.Empty, this);
524throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
535throw TraceUtility.ThrowHelperError(CreateAbortedException(), Guid.Empty, this);
570throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
573throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
601throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
604throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
607throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
627throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
630throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
633throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
636throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
653throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
656throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
659throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
662throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
665throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
679throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
682throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
688throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
691throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
694throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
704throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
714throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
717throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
726throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
729throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (43)
35throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
46throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
86throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
94throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
96throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
98throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
100throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
103throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
283throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageIsEmpty), this);
295throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
297throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
299throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
301throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
304throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
312throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.RequestMessageDoesNotHaveAMessageID), request);
422throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
484throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
514throw TraceUtility.ThrowHelperError(new ArgumentNullException("localName"), this);
516throw TraceUtility.ThrowHelperError(new ArgumentNullException("ns"), this);
522throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
524throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
526throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
528throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
531throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
613throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
659throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
666throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenCopied), this);
668throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenRead), this);
670throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.MessageHasBeenWritten), this);
672throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
675throw TraceUtility.ThrowHelperError(new InvalidOperationException(SRServiceModel.InvalidMessageState), this);
760throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
767throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
963throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
973throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
983throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
993throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1005throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1251throw TraceUtility.ThrowHelperError(
1291throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1453throw TraceUtility.ThrowHelperError(
1506throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1524throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (39)
33ActivityIdHeader activityIdHeader = new ActivityIdHeader(TraceUtility.ExtractActivityId(message));
67TraceUtility.SetActivity(destination, TraceUtility.ExtractActivity(source));
85if ((DiagnosticUtility.ShouldUseActivity || TraceUtility.ShouldPropagateActivityGlobal) &&
91if (message.Properties.TryGetValue(TraceUtility.ActivityIdKey, out property))
101if (TraceUtility.MessageFlowTracingOnly)
115return TraceUtility.ExtractActivityId(operationContext.IncomingMessage);
125ServiceModelActivity retval = TraceUtility.ExtractActivity(message);
130message.Properties[TraceUtility.ActivityIdKey] = false;
140ServiceModelActivity incomingActivity = TraceUtility.ExtractActivity(message);
151TraceUtility.SetActivity(message, activity);
154TraceUtility.MessageFlowAtMessageReceived(message, null, eventTraceActivity, true);
167TraceUtility.SetActivity(message, activity);
169if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
171TraceUtility.AddAmbientActivityToMessage(message);
174TraceUtility.MessageFlowAtMessageSent(message, eventTraceActivity);
186message.Properties[TraceUtility.ActivityIdKey] = activity;
251return (ArgumentException)TraceUtility.ThrowHelperError(new ArgumentException(message, paramName), msg);
256return (ArgumentNullException)TraceUtility.ThrowHelperError(new ArgumentNullException(paramName), message);
275TraceUtility.SetEtwProviderId();
276TraceUtility.SetEndToEndTracingFlags();
288return Interlocked.Increment(ref TraceUtility.s_messageNumber);
295return TraceUtility.ShouldPropagateActivity &&
296TraceUtility.PropagateUserActivityCore;
326if ((null != properties) && properties.TryGetValue(TraceUtility.E2EActivityId, out activityId))
374if (TraceUtility.MessageFlowTracing)
380if (TraceUtility.MessageFlowTracingOnly)
397if (TraceUtility.MessageFlowTracing)
402if (TraceUtility.MessageFlowTracingOnly)
427WcfEventSource.Instance.MessageReceivedFromTransport(eventTraceActivity, correlationId, TraceUtility.GetAnnotation(context));
445if (TraceUtility.ShouldPropagateActivity)
488message.Properties[TraceUtility.ActivityIdKey] = activity;
496OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationActivityKey] = activity;
503if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue(TraceUtility.AsyncOperationActivityKey, out data))
505OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationActivityKey);
514OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationStartTimeKey] = new EventTraceActivityTimeProperty(eventTraceActivity, startTime);
523if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue<EventTraceActivityTimeProperty>(TraceUtility.AsyncOperationStartTimeKey, out data))
525OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationStartTimeKey);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (10)
243throw TraceUtility.ThrowHelperError(new ArgumentNullException("buffer"), _message);
245throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset,
248throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", count,
251throw TraceUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidStreamOffsetLength, offset + count)), _message);
317set { throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message); }
337throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message);
340public override void Flush() { throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message); }
341public override long Seek(long offset, SeekOrigin origin) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message); }
342public override void SetLength(long value) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message); }
343public override void Write(byte[] buffer, int offset, int count) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), _message); }
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (4)
67ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
93ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
129ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
154ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);