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
- DecoderNLS.cs
- LinqToSqlWrapper.cs
- SettingsSection.cs
- TextSegment.cs
- SoapCodeExporter.cs
- FileDialog_Vista_Interop.cs
- ClientFormsIdentity.cs
- UnsafeNativeMethods.cs
- Thread.cs
- QilFunction.cs
- HighlightComponent.cs
- SamlSubjectStatement.cs
- DataBoundControl.cs
- SoapSchemaImporter.cs
- SqlGatherProducedAliases.cs
- SelectionEditingBehavior.cs
- DesignerSerializationOptionsAttribute.cs
- MatcherBuilder.cs
- WebBrowserBase.cs
- ReadOnlyCollectionBase.cs
- EllipticalNodeOperations.cs
- SrgsDocumentParser.cs
- Transform3DGroup.cs
- DataServiceClientException.cs
- Membership.cs
- BitmapPalette.cs
- PerformanceCountersBase.cs
- CustomErrorsSection.cs
- FontFaceLayoutInfo.cs
- TripleDESCryptoServiceProvider.cs
- Viewport3DAutomationPeer.cs
- DataGridViewTopRowAccessibleObject.cs
- DataObjectAttribute.cs
- SqlRewriteScalarSubqueries.cs
- BulletedListEventArgs.cs
- DisplayInformation.cs
- TextCompositionManager.cs
- FormsAuthenticationUserCollection.cs
- StringFunctions.cs
- DataGridColumnEventArgs.cs
- DesignerActionMethodItem.cs
- RadioButtonPopupAdapter.cs
- SafeCryptoHandles.cs
- Literal.cs
- WebPartActionVerb.cs
- DeviceSpecificDesigner.cs
- RegexNode.cs
- Reference.cs
- CompiledRegexRunner.cs
- DesignTimeValidationFeature.cs
- PathParser.cs
- Converter.cs
- DataGridViewLinkCell.cs
- ToolTipAutomationPeer.cs
- WebPartChrome.cs
- SecurityState.cs
- XmlArrayAttribute.cs
- ApplicationHost.cs
- XmlWriterDelegator.cs
- ToolStripPanelRenderEventArgs.cs
- SegmentInfo.cs
- ScrollContentPresenter.cs
- InProcStateClientManager.cs
- FormViewDeletedEventArgs.cs
- PrinterUnitConvert.cs
- ArithmeticException.cs
- NativeMethods.cs
- ChangesetResponse.cs
- InteropEnvironment.cs
- AspNetPartialTrustHelpers.cs
- TypeUtil.cs
- PropVariant.cs
- UriTemplateTable.cs
- DependencyObjectCodeDomSerializer.cs
- XmlEventCache.cs
- EdmSchemaAttribute.cs
- Configuration.cs
- TextView.cs
- EventDrivenDesigner.cs
- DeclaredTypeElement.cs
- SizeLimitedCache.cs
- InvocationExpression.cs
- TcpWorkerProcess.cs
- SystemWebSectionGroup.cs
- DesignerOptionService.cs
- ArrayElementGridEntry.cs
- HttpStreamMessage.cs
- ListenerElementsCollection.cs
- CallbackTimeoutsElement.cs
- ToolBarButton.cs
- HtmlInputReset.cs
- XpsFilter.cs
- BaseCodePageEncoding.cs
- Control.cs
- OdbcDataAdapter.cs
- smtpconnection.cs
- ImpersonateTokenRef.cs
- ReliabilityContractAttribute.cs
- XmlEncodedRawTextWriter.cs
- QueryOptionExpression.cs