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
- PipelineModuleStepContainer.cs
- TimerElapsedEvenArgs.cs
- RequestCache.cs
- XmlQueryType.cs
- CounterSetInstanceCounterDataSet.cs
- LinqDataView.cs
- Substitution.cs
- TextFormatterHost.cs
- TraceFilter.cs
- TextTreePropertyUndoUnit.cs
- AsyncResult.cs
- TemplateInstanceAttribute.cs
- SiteMapDataSourceView.cs
- FrugalList.cs
- FontUnit.cs
- MetadataItemCollectionFactory.cs
- ExpressionWriter.cs
- ClockController.cs
- EntityCommand.cs
- XDRSchema.cs
- ChannelDispatcher.cs
- Label.cs
- XmlSchemaCollection.cs
- sqlstateclientmanager.cs
- input.cs
- XsltInput.cs
- WorkingDirectoryEditor.cs
- TextTreeFixupNode.cs
- FusionWrap.cs
- TdsParserStaticMethods.cs
- HideDisabledControlAdapter.cs
- OutOfProcStateClientManager.cs
- CharConverter.cs
- WebControlToolBoxItem.cs
- InvalidWorkflowException.cs
- RuntimeResourceSet.cs
- PermissionAttributes.cs
- WebServiceTypeData.cs
- bindurihelper.cs
- XmlDownloadManager.cs
- WpfXamlMember.cs
- BitmapEffectInput.cs
- AuthenticationService.cs
- MobileSysDescriptionAttribute.cs
- OptimizedTemplateContent.cs
- JoinTreeNode.cs
- SerTrace.cs
- KeyTimeConverter.cs
- Button.cs
- RelationshipDetailsRow.cs
- XmlSchemaSimpleContent.cs
- NullExtension.cs
- TreeNode.cs
- AsyncDataRequest.cs
- ConstNode.cs
- WindowsScroll.cs
- JulianCalendar.cs
- SqlDependency.cs
- RectAnimationClockResource.cs
- EntityWrapper.cs
- arclist.cs
- Validator.cs
- CustomErrorsSection.cs
- LayoutDump.cs
- WebPartZone.cs
- DeviceContexts.cs
- Page.cs
- NetworkAddressChange.cs
- SettingsSection.cs
- DBConnection.cs
- FilteredAttributeCollection.cs
- HorizontalAlignConverter.cs
- TextViewBase.cs
- DbUpdateCommandTree.cs
- ConnectorMovedEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- MarginCollapsingState.cs
- DataGrid.cs
- ContentElement.cs
- DataRecordInfo.cs
- ValueHandle.cs
- QilIterator.cs
- PointValueSerializer.cs
- BufferedWebEventProvider.cs
- MembershipSection.cs
- Mappings.cs
- RowsCopiedEventArgs.cs
- DataSet.cs
- StreamResourceInfo.cs
- AspProxy.cs
- ImmutableCollection.cs
- FlowDocumentPage.cs
- RenderData.cs
- SessionStateItemCollection.cs
- ChtmlMobileTextWriter.cs
- RegistrySecurity.cs
- HttpResponse.cs
- OdbcConnectionStringbuilder.cs
- FlowDocumentPage.cs
- ConfigurationSection.cs