Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / ChannelTraceRecord.cs / 1 / ChannelTraceRecord.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.Diagnostics
{
using System;
using System.Diagnostics;
using System.Globalization;
using System.ServiceModel.Channels;
using System.ServiceModel.Diagnostics;
using System.Text;
using System.Xml;
internal class ChannelTraceRecord : TraceRecord
{
string channelType;
internal ChannelTraceRecord(IChannel channel)
{
this.channelType = channel == null ? null : channel.ToString();
}
internal override string EventId { get { return TraceRecord.EventIdBase + "Channel" + TraceRecord.NamespaceSuffix; } }
internal override void WriteTo(XmlWriter xml)
{
if (this.channelType != null)
{
xml.WriteElementString("ChannelType", this.channelType);
}
}
}
}
// 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
- Assembly.cs
- RubberbandSelector.cs
- AmbientEnvironment.cs
- ProfilePropertyMetadata.cs
- UpdateProgress.cs
- EventArgs.cs
- HtmlHistory.cs
- ActivityExecutionFilter.cs
- Evaluator.cs
- GenericAuthenticationEventArgs.cs
- ErrorHandler.cs
- RequestNavigateEventArgs.cs
- CompositeDataBoundControl.cs
- InvokePatternIdentifiers.cs
- DLinqAssociationProvider.cs
- _ContextAwareResult.cs
- FamilyTypefaceCollection.cs
- XpsS0ValidatingLoader.cs
- KeyManager.cs
- SmtpCommands.cs
- DrawingAttributes.cs
- TextServicesDisplayAttribute.cs
- Gdiplus.cs
- SerializationHelper.cs
- UserControl.cs
- IntMinMaxAggregationOperator.cs
- ListViewItemSelectionChangedEvent.cs
- ListChunk.cs
- QueryCacheManager.cs
- VerbConverter.cs
- UriParserTemplates.cs
- MsmqAppDomainProtocolHandler.cs
- DecodeHelper.cs
- AutomationElementCollection.cs
- ThreadStateException.cs
- StackSpiller.Generated.cs
- PropertyTabChangedEvent.cs
- URLAttribute.cs
- HttpCookiesSection.cs
- XmlDocument.cs
- DbParameterCollectionHelper.cs
- ThrowOnMultipleAssignment.cs
- IdnElement.cs
- XslCompiledTransform.cs
- Classification.cs
- MultiTargetingUtil.cs
- MoveSizeWinEventHandler.cs
- ReadWriteControlDesigner.cs
- FormViewDeleteEventArgs.cs
- CompilerHelpers.cs
- XmlTextReaderImpl.cs
- DataGridViewTextBoxCell.cs
- PolicyStatement.cs
- ForceCopyBuildProvider.cs
- CriticalHandle.cs
- HttpRawResponse.cs
- LeafCellTreeNode.cs
- AspNetHostingPermission.cs
- StringConverter.cs
- ConfigurationLocationCollection.cs
- TabPage.cs
- SchemaImporter.cs
- TreeNodeCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- Assembly.cs
- Compiler.cs
- OracleBoolean.cs
- BulletedListEventArgs.cs
- WpfPayload.cs
- BinaryFormatter.cs
- PipelineComponent.cs
- UriExt.cs
- BooleanProjectedSlot.cs
- SqlRetyper.cs
- ExpressionBindingCollection.cs
- SelectorItemAutomationPeer.cs
- GeometryModel3D.cs
- RoleGroupCollectionEditor.cs
- ShellProvider.cs
- UriSection.cs
- SerializationStore.cs
- NamedPipeConnectionPoolSettingsElement.cs
- NativeWrapper.cs
- ObjectHelper.cs
- BitmapMetadataEnumerator.cs
- PeerContact.cs
- GlyphElement.cs
- TargetPerspective.cs
- XmlNamespaceDeclarationsAttribute.cs
- WindowsTreeView.cs
- CacheSection.cs
- PolicyConversionContext.cs
- DirectionalLight.cs
- XmlSchemaDatatype.cs
- ItemsChangedEventArgs.cs
- ConditionBrowserDialog.cs
- XmlSchemaAppInfo.cs
- SqlReferenceCollection.cs
- _HeaderInfoTable.cs
- Hashtable.cs