System\ServiceModel\Administration\AppDomainInstanceProvider.cs (4)
148TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
161TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
174TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
187TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.WmiPut, SR.GetString(SR.TraceCodeWmiPut),
System\ServiceModel\Channels\CommunicationObject.cs (60)
116TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.CommunicationObjectAborted, SR.GetString(SR.TraceCodeCommunicationObjectAborted, TraceUtility.CreateSourceString(this)), this);
125throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this);
131throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this);
140TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectAbortFailed, SR.GetString(SR.TraceCodeCommunicationObjectAbortFailed, this.GetCommunicationObjectType().ToString()), this);
180throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
191throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this);
203TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectCloseFailed, SR.GetString(SR.TraceCodeCommunicationObjectCloseFailed, this.GetCommunicationObjectType().ToString()), this);
243throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this);
255TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectOpenFailed, SR.GetString(SR.TraceCodeCommunicationObjectOpenFailed, this.GetCommunicationObjectType().ToString()), this);
299throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
312throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosing"), Guid.Empty, this);
318throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnClosed"), Guid.Empty, this);
328TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectCloseFailed, SR.GetString(SR.TraceCodeCommunicationObjectCloseFailed, this.GetCommunicationObjectType().ToString()), this);
434throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
437throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
498TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.CommunicationObjectFaultReason,
589throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpening"), Guid.Empty, this);
595throw TraceUtility.ThrowHelperError(this.CreateBaseClassMethodNotCalledException("OnOpened"), Guid.Empty, this);
605TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectOpenFailed, SR.GetString(SR.TraceCodeCommunicationObjectOpenFailed, this.GetCommunicationObjectType().ToString()), this);
628TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.CommunicationObjectClosed, SR.GetString(SR.TraceCodeCommunicationObjectClosed, TraceUtility.CreateSourceString(this)), this);
661TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.CommunicationObjectClosing, SR.GetString(SR.TraceCodeCommunicationObjectClosing, TraceUtility.CreateSourceString(this)), this);
691TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectFaulted, SR.GetString(SR.TraceCodeCommunicationObjectFaulted, this.GetCommunicationObjectType().ToString()), this);
723TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.CommunicationObjectOpened, SR.GetString(SR.TraceCodeCommunicationObjectOpened, TraceUtility.CreateSourceString(this)), this);
748TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.CommunicationObjectOpening, SR.GetString(SR.TraceCodeCommunicationObjectOpening, TraceUtility.CreateSourceString(this)), this);
790throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
801throw TraceUtility.ThrowHelperError(CreateAbortedException(), Guid.Empty, this);
836throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
839throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
867throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
870throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
873throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
893throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
896throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
899throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
902throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
919throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
922throw TraceUtility.ThrowHelperError(this.CreateImmutableException(), Guid.Empty, this);
925throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
928throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
931throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
945throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
948throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
954throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
957throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
960throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
970throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
980throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
983throw TraceUtility.ThrowHelperError(this.CreateNotOpenException(), Guid.Empty, this);
992throw TraceUtility.ThrowHelperError(this.CreateClosedException(), Guid.Empty, this);
995throw TraceUtility.ThrowHelperError(this.CreateFaultedException(), Guid.Empty, this);
1012throw TraceUtility.ThrowHelperError(exception, Guid.Empty, this);
1121throw TraceUtility.ThrowHelperError(
1133TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectOpenFailed,
1195throw TraceUtility.ThrowHelperError(
1207TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.CommunicationObjectCloseFailed,
System\ServiceModel\Channels\HttpChannelFactory.cs (7)
598TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.HttpResponseReceived, SR.GetString(SR.TraceCodeHttpResponseReceived), new StringTraceRecord("ResponseUri", response.ResponseUri.ToString()), receiver, null, message);
602TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.HttpResponseReceived, SR.GetString(SR.TraceCodeHttpResponseReceived), receiver, message);
821throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ManualAddressingRequiresAddressedMessages)), message);
1632throw TraceUtility.ThrowHelperError(new CommunicationException(ioException.Message,
1637throw TraceUtility.ThrowHelperError(new CommunicationException(webException.Message,
1644throw TraceUtility.ThrowHelperError(new CommunicationObjectAbortedException(SR.GetString(SR.HttpRequestAborted, to.Uri),
1648throw TraceUtility.ThrowHelperError(new TimeoutException(SR.GetString(SR.HttpRequestTimedOut,
System\ServiceModel\Channels\HttpChannelHelpers.cs (7)
362TraceUtility.TransferFromTransport(message);
366TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.MessageReceived, SR.GetString(SR.TraceCodeMessageReceived),
499ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
760ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
1150TraceUtility.TraceEvent(TraceEventType.Warning,
2007TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.MessageSent, SR.GetString(SR.TraceCodeMessageSent),
3753TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.HttpChannelUnexpectedResponse, SR.GetString(SR.TraceCodeHttpChannelUnexpectedResponse), (object)null, exception);
System\ServiceModel\Channels\HttpsChannelListener.cs (4)
318TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.HttpsClientCertificateNotPresent, SR.GetString(SR.TraceCodeHttpsClientCertificateNotPresent),
328TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.HttpsClientCertificateInvalid, SR.GetString(SR.TraceCodeHttpsClientCertificateInvalid),
364TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.HttpsClientCertificateNotPresent,
375TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.HttpsClientCertificateInvalid,
System\ServiceModel\Channels\Message.cs (49)
38throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
50throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
106TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.MessageClosed,
114TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.MessageClosedAgain,
123throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
131TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.MessageCopied,
136throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
138throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
140throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
142throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
145throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
325throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageIsEmpty)), this);
337TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.MessageRead, SR.GetString(SR.TraceCodeMessageRead), this);
341throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
343throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
345throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
347throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
350throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
357throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
374throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.RequestMessageDoesNotHaveAMessageID)), request);
472throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
525throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
555throw TraceUtility.ThrowHelperError(new ArgumentNullException("localName"), this);
557throw TraceUtility.ThrowHelperError(new ArgumentNullException("ns"), this);
563throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
565throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
567throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
569throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
572throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
654throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
677throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
684TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.MessageWritten, SR.GetString(SR.TraceCodeMessageWritten), this);
688throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
690throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
692throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
694throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
697throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
780throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
787throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
1005throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1016throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1027throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1038throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1075throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1316throw TraceUtility.ThrowHelperError(
1357throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1519throw TraceUtility.ThrowHelperError(
1573throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1592throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
System\ServiceModel\Channels\MsmqDiagnostics.cs (26)
21TraceUtility.TraceEvent(
38TraceUtility.TraceEvent(
67TraceUtility.TraceEvent(
95ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessingMessage, TraceUtility.RetrieveMessageNumber()), ActivityType.ProcessMessage);
106ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityReceiveBytes, TraceUtility.RetrieveMessageNumber()), ActivityType.ReceiveBytes);
115TraceUtility.TransferFromTransport(message);
128TraceUtility.TraceEvent(
147TraceUtility.TraceEvent(
161TraceUtility.TraceEvent(
181TraceUtility.TraceEvent(
200TraceUtility.TraceEvent(
230TraceUtility.TraceEvent(TraceEventType.Verbose, traceCode, traceDescription, record, null, null);
258TraceUtility.TraceEvent(
284TraceUtility.TraceEvent(
298TraceUtility.TraceEvent(
312TraceUtility.TraceEvent(
326TraceUtility.TraceEvent(
344TraceUtility.TraceEvent(
364TraceUtility.TraceEvent(
380TraceUtility.TraceEvent(
394TraceUtility.TraceEvent(
408TraceUtility.TraceEvent(
422TraceUtility.TraceEvent(
440TraceUtility.TraceEvent(
458TraceUtility.TraceEvent(
475TraceUtility.TraceEvent(
System\ServiceModel\Channels\PeerMaintainer.cs (7)
183TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
278TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
298TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
317TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
337TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
532TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
549TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerMaintainerActivity, SR.GetString(SR.TraceCodePeerMaintainerActivity),
System\ServiceModel\Channels\PeerNeighborManager.cs (5)
510TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNeighborManagerOnline,
590TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.PeerNeighborNotAccepted,
658TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNeighborManagerOffline,
1353TraceUtility.TraceEvent(severity, TraceCode.PeerNeighborStateChanged,
1398TraceUtility.TraceEvent(severity, traceCode, traceDescription, record, this, e);
System\ServiceModel\Channels\PeerNodeImplementation.cs (9)
437TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.PeerChannelMessageSent, SR.GetString(SR.TraceCodePeerChannelMessageSent), this, message);
498TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNodeClosing, SR.GetString(SR.TraceCodePeerNodeClosing), this.traceRecord, this, null);
676TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNodeClosed, SR.GetString(SR.TraceCodePeerNodeClosed), this.traceRecord, this, null);
864TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNodeOpened, SR.GetString(SR.TraceCodePeerNodeOpened), this.completeTraceRecord, this, null);
868TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.PeerNodeOpenFailed, SR.GetString(SR.TraceCodePeerNodeOpenFailed), this.completeTraceRecord, this, e);
912TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.PeerFloodedMessageReceived, SR.GetString(SR.TraceCodePeerFloodedMessageReceived), this.traceRecord, this, null);
934TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.PeerFloodedMessageNotPropagated, SR.GetString(SR.TraceCodePeerFloodedMessageNotPropagated), this.traceRecord, this, null, traceMessage);
1051TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNodeAddressChanged, SR.GetString(SR.TraceCodePeerNodeAddressChanged), this.completeTraceRecord, this, null);
1317TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PeerNodeOpening, SR.GetString(SR.TraceCodePeerNodeOpening), this.traceRecord, this, null);
System\ServiceModel\Channels\PnrpPeerResolver.cs (5)
320TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PnrpRegisteredAddresses,
351TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PnrpUnregisteredAddresses,
684TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.PnrpResolvedAddresses,
712TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PnrpResolvedAddresses,
2124TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.PnrpResolveException,
System\ServiceModel\Channels\ServiceChannel.cs (16)
638throw TraceUtility.ThrowHelperError(error, rpc.Request);
646throw TraceUtility.ThrowHelperError(error, rpc.Request);
656throw TraceUtility.ThrowHelperError(error, rpc.Request);
662if (TraceUtility.MessageFlowTracingOnly)
674TraceUtility.SetActivity(rpc.Request, rpc.Activity);
675if (TraceUtility.ShouldPropagateActivity)
677TraceUtility.AddActivityHeader(rpc.Request);
680else if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
682TraceUtility.AddAmbientActivityToMessage(rpc.Request);
693TraceUtility.MessageFlowAtMessageSent(rpc.Request, rpc.EventTraceActivity);
752callback = TraceUtility.WrapExecuteUserCodeAsyncCallback(callback);
979if (TraceUtility.MessageFlowTracingOnly && rpc.ActivityId != Guid.Empty)
986TraceUtility.MessageFlowAtMessageReceived(rpc.Reply, null, rpc.EventTraceActivity, false);
1042if (TraceUtility.MessageFlowTracingOnly)
1842TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ServiceChannelLifetime,
System\ServiceModel\Channels\SharedConnectionListener.cs (7)
50this.connectionQueue = TraceUtility.CreateInputQueue<DuplicateConnectionAsyncResult>();
404TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PortSharingListening, SR.GetString(SR.TraceCodePortSharingListening));
462TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PortSharingClosed, SR.GetString(SR.TraceCodePortSharingClosed));
699TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.PortSharingDupHandleGranted,
708TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.PortSharingDuplicatedPipe, SR.GetString(SR.TraceCodePortSharingDuplicatedPipe));
751TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.PortSharingDuplicatedSocket,
1094TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SharedManagerServiceEndpointNotExist,
System\ServiceModel\Channels\SocketConnection.cs (11)
228this.remoteEndpointAddress = TraceUtility.GetRemoteEndpointAddressPort(remote);
339TraceUtility.TraceEvent(traceEventType, TraceCode.SocketConnectionAbort,
524TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SocketConnectionAbortClose,
629TraceUtility.TraceEvent(TraceEventType.Information, traceCode, SR.GetString(srString), new DictionaryTraceRecord(values), this, null);
746TraceUtility.TraceEvent(exceptionEventType, TraceCode.TcpConnectionTimedOut, GetEndpointString(SR.TcpConnectionTimedOut, timeout, null, socketConnection), timeoutException, null);
772TraceUtility.TraceEvent(exceptionEventType, TraceCode.TcpConnectionResetError, GetEndpointString(SR.TcpConnectionResetError, timeout, null, socketConnection), communicationException, null);
782TraceUtility.TraceEvent(exceptionEventType, TraceCode.TcpConnectionTimedOut, GetEndpointString(SR.TcpConnectionTimedOut, timeout, null, socketConnection), timeoutException, null);
797TraceUtility.TraceEvent(exceptionEventType, TraceCode.TcpTransferError, GetEndpointString(SR.TcpTransferError, TimeSpan.MinValue, socketException, socketConnection), communicationException, null);
1685TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.InitiatingTcpConnection,
1755TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.InitiatingTcpConnection,
1774TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.TcpConnectError,
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (24)
31TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
42TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
56TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
68TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
83TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
96TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
110TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
119TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
128TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
146TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record, null, null, message);
160TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record, null, null, message);
169TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
200TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
242TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
253TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
264TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
319TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
341TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
360TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
373TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
385TraceUtility.TraceEvent(type, v, ServiceModelSR.GetString(description), record);
396TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
413TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
426TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record);
System\ServiceModel\Description\ConfigLoader.cs (9)
284TraceUtility.TraceEvent(TraceEventType.Warning, traceCode, traceDescription,
710TraceUtility.TraceEvent(TraceEventType.Verbose, traceCode, traceDescription,
882TraceUtility.TraceEvent(TraceEventType.Verbose, traceCode, traceDescription,
1105TraceUtility.TraceEvent(TraceEventType.Verbose, traceCode, traceDescription,
1200TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.GetBehaviorElement,
1234TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.GetBehaviorElement,
1265TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.GetCommonBehaviors,
1380TraceUtility.TraceEvent(TraceEventType.Information,
1449TraceUtility.TraceEvent(TraceEventType.Information,
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (64)
43TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderRemovedCachedToken, SR.GetString(SR.TraceCodeIssuanceTokenProviderRemovedCachedToken), new IssuanceProviderTraceRecord<T>(provider, serviceToken));
52TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderUsingCachedToken, SR.GetString(SR.TraceCodeIssuanceTokenProviderUsingCachedToken), new IssuanceProviderTraceRecord<T>(provider, serviceToken, target));
67TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderBeginSecurityNegotiation, SR.GetString(SR.TraceCodeIssuanceTokenProviderBeginSecurityNegotiation), new IssuanceProviderTraceRecord<T>(provider, target));
81TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderEndSecurityNegotiation, SR.GetString(SR.TraceCodeIssuanceTokenProviderEndSecurityNegotiation), new IssuanceProviderTraceRecord<T>(provider, serviceToken, target));
90TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderRedirectApplied, SR.GetString(SR.TraceCodeIssuanceTokenProviderRedirectApplied), new IssuanceProviderTraceRecord<T>(provider, newTarget, oldTarget));
99TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.IssuanceTokenProviderServiceTokenCacheFull, SR.GetString(SR.TraceCodeIssuanceTokenProviderServiceTokenCacheFull), new IssuanceProviderTraceRecord<T>(provider, cacheSize));
107TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SpnegoClientNegotiationCompleted, SR.GetString(SR.TraceCodeSpnegoClientNegotiationCompleted), new WindowsSspiNegotiationTraceRecord(windowsNegotiation));
115TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SpnegoServiceNegotiationCompleted, SR.GetString(SR.TraceCodeSpnegoServiceNegotiationCompleted), new WindowsSspiNegotiationTraceRecord(windowsNegotiation));
123TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SpnegoClientNegotiation, SR.GetString(SR.TraceCodeSpnegoClientNegotiation), new WindowsSspiNegotiationTraceRecord(windowsNegotiation));
131TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SpnegoServiceNegotiation, SR.GetString(SR.TraceCodeSpnegoServiceNegotiation), new WindowsSspiNegotiationTraceRecord(windowsNegotiation));
140TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.NegotiationAuthenticatorAttached, SR.GetString(SR.TraceCodeNegotiationAuthenticatorAttached), new NegotiationAuthenticatorTraceRecord<T>(authenticator, transportChannelListener));
149TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ServiceSecurityNegotiationCompleted, SR.GetString(SR.TraceCodeServiceSecurityNegotiationCompleted),
165TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityNegotiationProcessingFailure, SR.GetString(SR.TraceCodeSecurityNegotiationProcessingFailure), new NegotiationAuthenticatorTraceRecord<T>(authenticator, e));
179TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityContextTokenCacheFull, SR.GetString(SR.TraceCodeSecurityContextTokenCacheFull),
187TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityVerificationSuccess, SR.GetString(SR.TraceCodeSecurityIdentityVerificationSuccess), new IdentityVerificationSuccessTraceRecord(identity, claim, identityVerifier));
198TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityVerificationFailure, SR.GetString(SR.TraceCodeSecurityIdentityVerificationFailure), new IdentityVerificationFailureTraceRecord(identity, authContext, identityVerifier));
204TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityDeterminationSuccess, SR.GetString(SR.TraceCodeSecurityIdentityDeterminationSuccess), new IdentityDeterminationSuccessTraceRecord(epr, identity, identityVerifier));
210TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityDeterminationFailure, SR.GetString(SR.TraceCodeSecurityIdentityDeterminationFailure), new IdentityDeterminationFailureTraceRecord(epr, identityVerifier));
216TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityIdentityHostNameNormalizationFailure, SR.GetString(SR.TraceCodeSecurityIdentityHostNameNormalizationFailure), new IdentityHostNameNormalizationFailureTraceRecord(epr, identityVerifier, e));
222TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ExportSecurityChannelBindingEntry, SR.GetString(SR.TraceCodeExportSecurityChannelBindingEntry), (object)null);
228TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ExportSecurityChannelBindingExit, SR.GetString(SR.TraceCodeExportSecurityChannelBindingExit));
234TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ImportSecurityChannelBindingEntry, SR.GetString(SR.TraceCodeImportSecurityChannelBindingEntry), (object)null);
240TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ImportSecurityChannelBindingExit, SR.GetString(SR.TraceCodeImportSecurityChannelBindingExit));
251TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityTokenProviderOpened, SR.GetString(SR.TraceCodeSecurityTokenProviderOpened), new TokenProviderTraceRecord(provider));
257TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityTokenProviderClosed, SR.GetString(SR.TraceCodeSecurityTokenProviderClosed), new TokenProviderTraceRecord(provider));
263TraceUtility.TraceEvent(TraceEventType.Verbose, TraceCode.SecurityTokenAuthenticatorOpened, SR.GetString(SR.TraceCodeSecurityTokenAuthenticatorOpened), new TokenAuthenticatorTraceRecord(authenticator));
269TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityTokenAuthenticatorClosed, SR.GetString(SR.TraceCodeSecurityTokenAuthenticatorClosed), new TokenAuthenticatorTraceRecord(authenticator));
282TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityBindingOutgoingMessageSecured,
297TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityBindingIncomingMessageVerified,
306TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityBindingSecureOutgoingMessageFailure,
315TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityBindingVerifyIncomingMessageFailure,
323TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySpnToSidMappingFailure, SR.GetString(SR.TraceCodeSecuritySpnToSidMappingFailure), new SpnToSidMappingTraceRecord(spn, e));
329TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionRedirectApplied, SR.GetString(SR.TraceCodeSecuritySessionRedirectApplied), new SessionRedirectAppliedTraceRecord(previousTarget, newTarget, sessionToken));
335TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityClientSessionCloseSent, SR.GetString(SR.TraceCodeSecurityClientSessionCloseSent), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
341TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityClientSessionCloseResponseSent, SR.GetString(SR.TraceCodeSecurityClientSessionCloseResponseSent), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
347TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityClientSessionCloseMessageReceived, SR.GetString(SR.TraceCodeSecurityClientSessionCloseMessageReceived), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
353TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionKeyRenewalFaultReceived, SR.GetString(SR.TraceCodeSecuritySessionKeyRenewalFaultReceived), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
359TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionAbortedFaultReceived, SR.GetString(SR.TraceCodeSecuritySessionAbortedFaultReceived), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
365TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionClosedResponseReceived, SR.GetString(SR.TraceCodeSecuritySessionClosedResponseReceived), new ClientSessionTraceRecord(sessionToken, null, remoteTarget));
371TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityClientSessionPreviousKeyDiscarded, SR.GetString(SR.TraceCodeSecurityClientSessionPreviousKeyDiscarded), new ClientSessionTraceRecord(currentSessionToken, previousSessionToken, remoteAddress));
377TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityClientSessionKeyRenewed, SR.GetString(SR.TraceCodeSecurityClientSessionKeyRenewed), new ClientSessionTraceRecord(newSessionToken, currentSessionToken, remoteAddress));
383TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityPendingServerSessionAdded, SR.GetString(SR.TraceCodeSecurityPendingServerSessionAdded), new ServerSessionTraceRecord(sessionId, listenAddress));
389TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityPendingServerSessionClosed, SR.GetString(SR.TraceCodeSecurityPendingServerSessionClosed), new ServerSessionTraceRecord(sessionId, listenAddress));
395TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityPendingServerSessionActivated, SR.GetString(SR.TraceCodeSecurityPendingServerSessionActivated), new ServerSessionTraceRecord(sessionId, listenAddress));
401TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityActiveServerSessionRemoved, SR.GetString(SR.TraceCodeSecurityActiveServerSessionRemoved), new ServerSessionTraceRecord(sessionId, listenAddress));
407TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityNewServerSessionKeyIssued, SR.GetString(SR.TraceCodeSecurityNewServerSessionKeyIssued), new ServerSessionTraceRecord(newToken, supportingToken, listenAddress));
413TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityInactiveSessionFaulted, SR.GetString(SR.TraceCodeSecurityInactiveSessionFaulted), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
419TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityServerSessionKeyUpdated, SR.GetString(SR.TraceCodeSecurityServerSessionKeyUpdated), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
425TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityServerSessionCloseReceived, SR.GetString(SR.TraceCodeSecurityServerSessionCloseReceived), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
431TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityServerSessionCloseResponseReceived, SR.GetString(SR.TraceCodeSecurityServerSessionCloseResponseReceived), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
438TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityServerSessionRenewalFaultSent,
446TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityServerSessionAbortedFaultSent, SR.GetString(SR.TraceCodeSecurityServerSessionAbortedFaultSent), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
452TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionCloseResponseSent, SR.GetString(SR.TraceCodeSecuritySessionCloseResponseSent), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
458TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionServerCloseSent, SR.GetString(SR.TraceCodeSecuritySessionServerCloseSent), new ServerSessionTraceRecord(sessionToken, (SecurityContextSecurityToken)null, listenAddress));
464TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionRenewFaultSendFailure, SR.GetString(SR.TraceCodeSecuritySessionRenewFaultSendFailure), new ServerSessionTraceRecord(sessionToken, listenAddress), e);
470TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionAbortedFaultSendFailure, SR.GetString(SR.TraceCodeSecuritySessionAbortedFaultSendFailure), new ServerSessionTraceRecord(sessionToken, listenAddress), e);
476TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionClosedResponseSendFailure, SR.GetString(SR.TraceCodeSecuritySessionClosedResponseSendFailure), new ServerSessionTraceRecord(sessionToken, listenAddress), e);
482TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionServerCloseSendFailure, SR.GetString(SR.TraceCodeSecuritySessionServerCloseSendFailure), new ServerSessionTraceRecord(sessionToken, listenAddress), e);
488TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionRequestorStartOperation, SR.GetString(SR.TraceCodeSecuritySessionRequestorStartOperation), new SessionRequestorTraceRecord(operation, currentToken, (GenericXmlSecurityToken)null, target));
494TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecuritySessionRequestorOperationSuccess, SR.GetString(SR.TraceCodeSecuritySessionRequestorOperationSuccess), new SessionRequestorTraceRecord(operation, currentToken, issuedToken, target));
500TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionRequestorOperationFailure, SR.GetString(SR.TraceCodeSecuritySessionRequestorOperationFailure), new SessionRequestorTraceRecord(operation, currentToken, e, target));
506TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionResponderOperationFailure, SR.GetString(SR.TraceCodeSecuritySessionResponderOperationFailure), new SessionResponderTraceRecord(operation, e, listenAddress));
512TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SecurityImpersonationSuccess, SR.GetString(SR.TraceCodeSecurityImpersonationSuccess), new ImpersonationTraceRecord(operation));
524TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecurityImpersonationFailure, SR.GetString(SR.TraceCodeSecurityImpersonationFailure), new ImpersonationTraceRecord(operation), e);
System\ServiceModel\Diagnostics\ServiceModelActivity.cs (2)
391TraceUtility.TraceEventNoCheck(type, TraceCode.ActivityBoundary, ServiceModelActivity.ActivityBoundaryDescription, null, ServiceModelActivity.ActivityBoundaryDescription, (Exception)null);
411TraceUtility.TraceEventNoCheck(type, TraceCode.ActivityBoundary, ServiceModelActivity.ActivityBoundaryDescription, new DictionaryTraceRecord(values), null, null, this.Id);
System\ServiceModel\Diagnostics\TraceUtility.cs (67)
488ActivityIdHeader activityIdHeader = new ActivityIdHeader(TraceUtility.ExtractActivityId(message));
498TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.FailedToAddAnActivityIdHeader,
517TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.FailedToAddAnActivityIdHeader,
526TraceUtility.SetActivity(destination, TraceUtility.ExtractActivity(source));
544if ((DiagnosticUtility.ShouldUseActivity || TraceUtility.ShouldPropagateActivityGlobal) &&
550if (message.GetProperty(TraceUtility.ActivityIdKey, out property))
563return TraceUtility.ExtractActivity(request.RequestMessage);
578if (TraceUtility.MessageFlowTracingOnly)
592return TraceUtility.ExtractActivityId(operationContext.IncomingMessage);
602ServiceModelActivity retval = TraceUtility.ExtractActivity(message);
607message.SetProperty(TraceUtility.ActivityIdKey, false);
617ServiceModelActivity incomingActivity = TraceUtility.ExtractActivity(message);
628TraceUtility.SetActivity(message, activity);
631TraceUtility.MessageFlowAtMessageReceived(message, null, eventTraceActivity, true);
644TraceUtility.SetActivity(message, activity);
646if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
648TraceUtility.AddAmbientActivityToMessage(message);
651TraceUtility.MessageFlowAtMessageSent(message, eventTraceActivity);
663message.SetProperty(TraceUtility.ActivityIdKey, activity);
676TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.DroppedAMessage,
715Guid activityId = TraceUtility.ExtractActivityId(message);
724Guid activityId = TraceUtility.ExtractActivityId(message);
750Guid activityId = TraceUtility.ExtractActivityId(message);
812traceCode.ToString("X", CultureInfo.InvariantCulture), typeof(TraceUtility)));
819Guid activityId = TraceUtility.ExtractActivityId(message);
842Guid activityId = TraceUtility.ExtractActivityId(message);
851return (ArgumentException)TraceUtility.ThrowHelperError(new ArgumentException(message, paramName), msg);
856return (ArgumentNullException)TraceUtility.ThrowHelperError(new ArgumentNullException(paramName), message);
873TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.ConnectToIPEndpoint,
895TraceUtility.SetEtwProviderId();
896TraceUtility.SetEndToEndTracingFlags();
900TraceUtility.shouldPropagateActivity = (ts.PropagateActivity || TraceUtility.shouldPropagateActivityGlobal);
910TraceUtility.shouldPropagateActivityGlobal = element.PropagateActivity;
912TraceUtility.shouldPropagateActivity = TraceUtility.shouldPropagateActivityGlobal || TraceUtility.shouldPropagateActivity;
916TraceUtility.activityTracing = DiagnosticUtility.ShouldUseActivity;
918TraceUtility.messageFlowTracing = element.MessageFlowTracing || TraceUtility.activityTracing;
919TraceUtility.messageFlowTracingOnly = element.MessageFlowTracing && !element.ActivityTracing;
922DiagnosticUtility.TracingEnabled = (DiagnosticUtility.TracingEnabled || TraceUtility.activityTracing);
927return Interlocked.Increment(ref TraceUtility.messageNumber);
934return TraceUtility.ShouldPropagateActivity &&
935TraceUtility.PropagateUserActivityCore;
987if ((null != properties) && properties.TryGetValue(TraceUtility.E2EActivityId, out activityId))
995get { return TraceUtility.shouldPropagateActivity; }
1000get { return TraceUtility.shouldPropagateActivityGlobal; }
1005get { return TraceUtility.activityTracing; }
1010get { return TraceUtility.messageFlowTracing; }
1015get { return TraceUtility.messageFlowTracingOnly; }
1020if (TraceUtility.MessageFlowTracing)
1026if (TraceUtility.MessageFlowTracingOnly)
1043if (TraceUtility.MessageFlowTracing)
1048if (TraceUtility.MessageFlowTracingOnly)
1064message.Properties[TraceUtility.E2EActivityId] = Trace.CorrelationManager.ActivityId;
1074TD.MessageReceivedFromTransport(eventTraceActivity, correlationId, TraceUtility.GetAnnotation(context));
1104if (TraceUtility.ShouldPropagateActivity)
1147message.Properties[TraceUtility.ActivityIdKey] = activity;
1155OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationActivityKey] = activity;
1162if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue(TraceUtility.AsyncOperationActivityKey, out data))
1164OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationActivityKey);
1173OperationContext.Current.OutgoingMessageProperties[TraceUtility.AsyncOperationStartTimeKey] = new EventTraceActivityTimeProperty(eventTraceActivity, startTime);
1182if (OperationContext.Current != null && OperationContext.Current.OutgoingMessageProperties.TryGetValue<EventTraceActivityTimeProperty>(TraceUtility.AsyncOperationStartTimeKey, out data))
1184OperationContext.Current.OutgoingMessageProperties.Remove(TraceUtility.AsyncOperationStartTimeKey);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (16)
503TraceUtility.TraceEvent(TraceEventType.Error, TraceCode.ServiceOperationExceptionOnReply,
550TraceUtility.TraceEvent(System.Diagnostics.TraceEventType.Error,
780TraceUtility.TraceEvent(System.Diagnostics.TraceEventType.Warning,
787TraceUtility.TraceEvent(System.Diagnostics.TraceEventType.Warning,
905TraceUtility.TraceEvent(
930throw TraceUtility.ThrowHelperError(error, rpc.Request);
939throw TraceUtility.ThrowHelperError(error, rpc.Request);
954throw TraceUtility.ThrowHelperError(error, rpc.Request);
962throw TraceUtility.ThrowHelperError(error, rpc.Request);
972throw TraceUtility.ThrowHelperError(error, rpc.Request);
1029TraceUtility.TraceEvent(
1063TraceUtility.TraceEvent(
1097TraceUtility.TraceEvent(
1131TraceUtility.TraceEvent(
1168TraceUtility.TraceEvent(
1396TraceUtility.MessageFlowAtMessageSent(rpc.Reply, rpc.EventTraceActivity);
System\ServiceModel\Dispatcher\StreamFormatter.cs (10)
240throw TraceUtility.ThrowHelperError(new ArgumentNullException("buffer"), this.message);
242throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset,
245throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", count,
248throw TraceUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SFxInvalidStreamOffsetLength, offset + count)), this.message);
315set { throw TraceUtility.ThrowHelperError(new NotSupportedException(), message); }
336throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message);
339public override void Flush() { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
340public override long Seek(long offset, SeekOrigin origin) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
341public override void SetLength(long value) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
342public override void Write(byte[] buffer, int offset, int count) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
System\ServiceModel\Dispatcher\TransactionBehavior.cs (15)
188TraceUtility.TraceEvent(TraceEventType.Information,
222TraceUtility.TraceEvent(TraceEventType.Information,
234TraceUtility.TraceEvent(TraceEventType.Information,
309TraceUtility.TraceEvent(TraceEventType.Information,
339TraceUtility.TraceEvent(TraceEventType.Information,
352TraceUtility.TraceEvent(TraceEventType.Information,
364throw TraceUtility.ThrowHelperError(TransactionBehavior.CreateFault
482TraceUtility.TraceEvent(TraceEventType.Information,
675TraceUtility.TraceEvent(TraceEventType.Information,
691TraceUtility.TraceEvent(TraceEventType.Information,
700TraceUtility.TraceEvent(TraceEventType.Information,
725TraceUtility.TraceEvent(TraceEventType.Information,
743TraceUtility.TraceEvent(TraceEventType.Information,
905TraceUtility.TraceEvent(TraceEventType.Information,
1049TraceUtility.TraceEvent(TraceEventType.Information,
System\ServiceModel\DuplexChannelFactory.cs (4)
76ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
102ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
138ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
163ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (22)
402throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
406throw TraceUtility.ThrowHelperError(new InvalidOperationException(
421throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
425throw TraceUtility.ThrowHelperError(new InvalidOperationException(
749throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SecurityHeaderIsEmpty)), this.Message);
876throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredSignatureMissing)), this.Message);
971throw TraceUtility.ThrowHelperError(new MessageSecurityException(
976throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1204throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1228throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.MissingIdInEncryptedElement)), this.Message);
1372throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.Message);
1387throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.Message);
1414throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureNotExpected)), this.Message);
1462throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsNotExpected)), this.Message);
1466throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsOccursAfterPrimarySignature)), this.Message);
1535throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SupportingTokenSignaturesNotExpected)), this.Message);
1544throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1560throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1572throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureVerificationFailed)), this.Message);
1594throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.DuplicateTimestampInSecurityHeader)), this.Message);
1637throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCouldNotReadToken, localName, namespaceUri, valueType)), this.Message);
1674throw TraceUtility.ThrowHelperError(new MessageSecurityException(
System\ServiceModel\Security\SecuritySessionClientSettings.cs (15)
806if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
808TraceUtility.AddAmbientActivityToMessage(closeMessage);
936throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.InvalidCloseResponseAction, response.Headers.Action)), response);
966throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SessionTokenWasNotClosed)), response);
984TraceUtility.CopyActivity(request, reply);
985if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
987TraceUtility.AddActivityHeader(reply);
1011throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.InvalidRstRequestType, rst.RequestType)), message);
1015throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.NoCloseTargetSpecified)), message);
1020throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.BadCloseTarget, rst.CloseTarget)), message);
2859throw TraceUtility.ThrowHelperWarning(error, message);
3134throw TraceUtility.ThrowHelperWarning(error, message);
3159this.queue = TraceUtility.CreateInputQueue<Message>();
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (10)
662throw TraceUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CannotIssueRstTokenType, rst.TokenType)), request);
677throw TraceUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.SecurityContextMissing, request.Headers.Action)), request);
684throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.WrongIdentityRenewingToken)), request);
771throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.RenewSessionMissingSupportingToken)), request);
783throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.InvalidRstRequestType, rst.RequestType)), request);
787throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.NoRenewTargetSpecified)), request);
793throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.BadRenewTarget, rst.RenewTarget)), request);
888throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.InvalidRstRequestType, rst.RequestType)), request);
969throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.SFxSecurityContextPropertyMissingFromRequestMessage)), request);
1030throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.InvalidActionForNegotiationMessage, request.Headers.Action)), request);
System\ServiceModel\Security\SecuritySessionServerSettings.cs (19)
1395throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.NoSessionTokenPresentInMessage)), message);
1562throw TraceUtility.ThrowHelperWarning(error, message);
1859TraceUtility.CopyActivity(request, reply);
1860if (TraceUtility.PropagateUserActivity || TraceUtility.ShouldPropagateActivity)
1862TraceUtility.AddActivityHeader(reply);
1938throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.InvalidRstRequestType, rst.RequestType)), request);
1942throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.NoCloseTargetSpecified)), request);
1947throw TraceUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.BadCloseTarget, rst.CloseTarget)), request);
2633TraceUtility.ExtractActivity(channel.initialRequestContext.RequestMessage) : null;
2679throw TraceUtility.ThrowHelperWarning(error, requestMessage);
2725TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.AsyncCallbackThrewException, SR.GetString(SR.TraceCodeAsyncCallbackThrewException), e.ToString());
2749TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.AsyncCallbackThrewException, SR.GetString(SR.TraceCodeAsyncCallbackThrewException), e.ToString());
3033throw TraceUtility.ThrowHelperWarning(error, message);
3075ServiceModelActivity activity = DiagnosticUtility.ShouldUseActivity ? TraceUtility.ExtractActivity(message) : null;
3362throw TraceUtility.ThrowHelperWarning(error, message);
3805throw TraceUtility.ThrowHelperWarning(error, message);
4325throw TraceUtility.ThrowHelperWarning(error, message);
4703TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.SecuritySessionDemuxFailure, SR.GetString(SR.TraceCodeSecuritySessionDemuxFailure), message);
System\ServiceModel\Security\SecurityVerifiedMessage.cs (8)
75throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
96throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
134throw TraceUtility.ThrowHelperError(CreateBadStateException("CreateFullBodyReader"), this);
379throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotEncrypted, name)), this);
383throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotEncryptedNs, name, ns)), this);
391throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotSigned, name)), this);
395throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotSignedNs, name, ns)), this);
440throw TraceUtility.ThrowHelperError(CreateBadStateException("SetDecryptedBody"), this);
System\ServiceModel\Security\SendSecurityHeader.cs (20)
109throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
113throw TraceUtility.ThrowHelperError(new InvalidOperationException(
198throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
202throw TraceUtility.ThrowHelperError(new InvalidOperationException(
235throw TraceUtility.ThrowHelperArgumentNull("token", this.Message);
371throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TimestampAlreadySetForSecurityHeader)), this.Message);
375throw TraceUtility.ThrowHelperArgumentNull("timestamp", this.Message);
399throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
595throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BasicTokenCannotBeWrittenWithoutEncryption)), this.Message);
751throw TraceUtility.ThrowHelperError(new ArgumentNullException("SignatureParts"), this.Message);
761throw TraceUtility.ThrowHelperError(new ArgumentNullException("EncryptionParts"), this.Message);
788throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
870throw TraceUtility.ThrowHelperArgumentNull("token", this.Message);
874throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
880throw TraceUtility.ThrowHelperError(new InvalidOperationException(
888throw TraceUtility.ThrowHelperError(new InvalidOperationException(
893throw TraceUtility.ThrowHelperError(new InvalidOperationException(
925throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
956throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
1005throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
System\ServiceModel\ServiceHost.cs (6)
60TraceUtility.SetEtwProviderId();
507TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.DefaultEndpointsAdded, SR.GetString(SR.TraceCodeDefaultEndpointsAdded), new DictionaryTraceRecord(dictionary));
904TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.ServiceHostTimeoutOnClose, SR.GetString(SR.TraceCodeServiceHostTimeoutOnClose), this, e);
935TraceUtility.TraceEvent(TraceEventType.Information,
967TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.ServiceHostTimeoutOnClose,
1114TraceUtility.TraceEvent(TraceEventType.Warning, TraceCode.ServiceHostFaulted,
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (9)
478TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationReadFeedBegin, SR.GetString(SR.TraceCodeSyndicationFeedReadBegin));
486TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationReadFeedEnd, SR.GetString(SR.TraceCodeSyndicationFeedReadEnd));
494TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationWriteFeedBegin, SR.GetString(SR.TraceCodeSyndicationFeedWriteBegin));
502TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationWriteFeedEnd, SR.GetString(SR.TraceCodeSyndicationFeedWriteEnd));
510TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationReadItemBegin, SR.GetString(SR.TraceCodeSyndicationItemReadBegin));
518TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationReadItemEnd, SR.GetString(SR.TraceCodeSyndicationItemReadEnd));
526TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationWriteItemBegin, SR.GetString(SR.TraceCodeSyndicationItemWriteBegin));
534TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationWriteItemEnd, SR.GetString(SR.TraceCodeSyndicationItemWriteEnd));
542TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.SyndicationProtocolElementIgnoredOnRead, SR.GetString(SR.TraceCodeSyndicationProtocolElementIgnoredOnRead, reader.NodeType, reader.LocalName, reader.NamespaceURI));