Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Diagnostics / TraceUtility.cs / 1 / TraceUtility.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Diagnostics { using System.Diagnostics; using System.Runtime.CompilerServices; using System.ServiceModel.Diagnostics; internal static class TraceUtility { static string Description(TraceCode traceCode) { // This method's validity is checked via a BVT at // ddsuites\src\indigo\Suites\diagnostics\Tracing\TraceCodeVerification string descriptionKey = "TraceCode" + DiagnosticTrace.CodeToString(traceCode); return SR.GetString(descriptionKey); } internal static void TraceEvent(TraceEventType severity, TraceCode traceCode, object source, Exception exception) { TraceEvent(severity, traceCode, null, source, exception); } // These methods require a TraceRecord to be allocated, so we want them to show up on profiles if the caller didn't avoid // allocating the TraceRecord by using ShouldTrace. [MethodImpl(MethodImplOptions.NoInlining)] internal static void TraceEvent(TraceEventType severity, TraceCode traceCode, TraceRecord extendedData, object source, Exception exception) { if (DiagnosticUtility.ShouldTrace(severity)) { Guid activityId = DiagnosticTrace.ActivityId; DiagnosticUtility.DiagnosticTrace.TraceEvent(severity, traceCode, Description(traceCode), extendedData, exception, activityId, source); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VariableQuery.cs
- InternalDuplexChannelListener.cs
- FontStretches.cs
- TextServicesContext.cs
- CacheChildrenQuery.cs
- ComplusEndpointConfigContainer.cs
- TraceContextRecord.cs
- QilValidationVisitor.cs
- WindowVisualStateTracker.cs
- ActivationArguments.cs
- CultureTable.cs
- Array.cs
- SettingsSavedEventArgs.cs
- QueryStringParameter.cs
- OleDbDataAdapter.cs
- DynamicActivityTypeDescriptor.cs
- ButtonBaseDesigner.cs
- NonVisualControlAttribute.cs
- PathSegmentCollection.cs
- SafeRegistryHandle.cs
- HotSpotCollection.cs
- Viewport3DAutomationPeer.cs
- AppLevelCompilationSectionCache.cs
- Executor.cs
- LinqDataSourceInsertEventArgs.cs
- FieldToken.cs
- ExtractorMetadata.cs
- SortableBindingList.cs
- NativeMethods.cs
- RecognizedWordUnit.cs
- ConfigXmlWhitespace.cs
- UInt32Converter.cs
- xmlglyphRunInfo.cs
- XmlSerializerOperationGenerator.cs
- SuppressMessageAttribute.cs
- Point3DValueSerializer.cs
- ValidatorUtils.cs
- _ConnectOverlappedAsyncResult.cs
- TextViewDesigner.cs
- XamlGridLengthSerializer.cs
- AssociationSet.cs
- PrintDialogException.cs
- DesignerVerbToolStripMenuItem.cs
- HttpHeaderCollection.cs
- ResourcePermissionBase.cs
- SQLMoneyStorage.cs
- ShutDownListener.cs
- DoubleAnimationUsingKeyFrames.cs
- BaseResourcesBuildProvider.cs
- CacheSection.cs
- PinnedBufferMemoryStream.cs
- AmbiguousMatchException.cs
- DecimalConverter.cs
- FullTextBreakpoint.cs
- NestedContainer.cs
- MemoryStream.cs
- OleStrCAMarshaler.cs
- SynchronizedDispatch.cs
- ServiceBuildProvider.cs
- BufferManager.cs
- PositiveTimeSpanValidator.cs
- TextPointerBase.cs
- CancellationScope.cs
- ToolboxItemCollection.cs
- SpanIndex.cs
- SQLRoleProvider.cs
- ListViewCancelEventArgs.cs
- ValidatorCollection.cs
- DbDataAdapter.cs
- RuleAction.cs
- CodeTypeConstructor.cs
- ValidatedControlConverter.cs
- ProfileSection.cs
- DrawingAttributes.cs
- BreakSafeBase.cs
- RemotingAttributes.cs
- ReadContentAsBinaryHelper.cs
- WebEventTraceProvider.cs
- GlyphElement.cs
- WebSysDisplayNameAttribute.cs
- QueryableDataSource.cs
- ItemCollection.cs
- Rotation3DAnimationUsingKeyFrames.cs
- PathGradientBrush.cs
- dataprotectionpermission.cs
- DataGridViewAdvancedBorderStyle.cs
- GridViewRowPresenter.cs
- ComIntegrationManifestGenerator.cs
- PrivateFontCollection.cs
- ContractAdapter.cs
- IOException.cs
- Processor.cs
- PositiveTimeSpanValidator.cs
- EntityWithChangeTrackerStrategy.cs
- InkCanvasInnerCanvas.cs
- XmlSchemaElement.cs
- RelationshipDetailsCollection.cs
- HintTextConverter.cs
- EntityTypeEmitter.cs
- LinkedResource.cs