Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / PerformanceCounterTraceRecord.cs / 1 / PerformanceCounterTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System; using System.Xml; using System.Text; class PerformanceCounterTraceRecord : TraceRecord { string categoryName; string perfCounterName; string instanceName; internal PerformanceCounterTraceRecord(string perfCounterName) : this(null, perfCounterName, null) { } internal PerformanceCounterTraceRecord(string categoryName, string perfCounterName) : this(categoryName, perfCounterName, null) { } internal PerformanceCounterTraceRecord(string categoryName, string perfCounterName, string instanceName) { this.categoryName = categoryName; this.perfCounterName = perfCounterName; this.instanceName = instanceName; } internal override string EventId {get {return TraceRecord.EventIdBase + "PerformanceCounter" + TraceRecord.NamespaceSuffix; }} internal override void WriteTo(XmlWriter writer) { if (!String.IsNullOrEmpty(this.categoryName)) { writer.WriteElementString("PerformanceCategoryName", this.categoryName); } writer.WriteElementString("PerformanceCounterName", this.perfCounterName); if (!String.IsNullOrEmpty(this.instanceName)) { writer.WriteElementString("InstanceName", this.instanceName); } } } } // 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
- EncoderFallback.cs
- XmlSiteMapProvider.cs
- GestureRecognizer.cs
- RepeatButtonAutomationPeer.cs
- TextViewSelectionProcessor.cs
- SqlNodeTypeOperators.cs
- StylusPointPropertyInfo.cs
- WebPartDisplayModeCollection.cs
- AssemblyCache.cs
- SiteMapProvider.cs
- CombinedGeometry.cs
- ContextMenu.cs
- PnrpPermission.cs
- DBDataPermissionAttribute.cs
- BaseResourcesBuildProvider.cs
- oledbmetadatacolumnnames.cs
- BindingWorker.cs
- InputBinder.cs
- GacUtil.cs
- TableRowCollection.cs
- WebBrowserPermission.cs
- RecommendedAsConfigurableAttribute.cs
- AppDomainUnloadedException.cs
- DataSysAttribute.cs
- SkewTransform.cs
- ValidationHelper.cs
- Enum.cs
- HostingEnvironment.cs
- PreviewKeyDownEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- XmlSerializer.cs
- dataprotectionpermission.cs
- UnsafeNativeMethodsPenimc.cs
- PointAnimationUsingPath.cs
- FloaterBaseParaClient.cs
- WSSecurityXXX2005.cs
- TemplateBuilder.cs
- XmlSchemaObjectTable.cs
- CacheSection.cs
- ReaderWriterLock.cs
- MimeTextImporter.cs
- HttpEncoder.cs
- XPathDocumentIterator.cs
- ToolStripSettings.cs
- IOException.cs
- PermissionSetEnumerator.cs
- DoubleLinkList.cs
- Pts.cs
- MsmqReceiveHelper.cs
- WsdlBuildProvider.cs
- BufferModesCollection.cs
- ServiceDesigner.cs
- SqlGenerator.cs
- BrowserDefinition.cs
- DictionarySectionHandler.cs
- WindowsTokenRoleProvider.cs
- ClientScriptItemCollection.cs
- SoapObjectReader.cs
- UshortList2.cs
- InvalidateEvent.cs
- GlobalizationSection.cs
- OuterGlowBitmapEffect.cs
- ConfigurationLoaderException.cs
- SymbolMethod.cs
- FormViewPageEventArgs.cs
- DiscreteKeyFrames.cs
- NamespaceImport.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ImageUrlEditor.cs
- SQLDoubleStorage.cs
- UpdatePanelControlTrigger.cs
- XsltSettings.cs
- CodeNamespaceCollection.cs
- HttpApplication.cs
- KnownColorTable.cs
- DodSequenceMerge.cs
- UnhandledExceptionEventArgs.cs
- WrappedIUnknown.cs
- RegexGroupCollection.cs
- LoginDesignerUtil.cs
- ScriptingSectionGroup.cs
- ActiveDocumentEvent.cs
- InputLangChangeEvent.cs
- QilIterator.cs
- CodeCommentStatement.cs
- KeyNotFoundException.cs
- PageThemeBuildProvider.cs
- WindowHideOrCloseTracker.cs
- RegexWorker.cs
- TypeExtensionConverter.cs
- SocketCache.cs
- ExpressionVisitor.cs
- ProjectionRewriter.cs
- WebPartCloseVerb.cs
- AxImporter.cs
- DecoderNLS.cs
- SpecialFolderEnumConverter.cs
- TextElementEditingBehaviorAttribute.cs
- Stylesheet.cs
- ManagementObjectCollection.cs