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
- HashMembershipCondition.cs
- AssemblyFilter.cs
- DesignerUtils.cs
- DropDownButton.cs
- ImageBrush.cs
- SharedDp.cs
- Point3DConverter.cs
- InvokerUtil.cs
- SHA1CryptoServiceProvider.cs
- ConnectionManagementElementCollection.cs
- Line.cs
- MetadataPropertyCollection.cs
- AttributeQuery.cs
- CryptoApi.cs
- ToolStripDropTargetManager.cs
- COAUTHINFO.cs
- Delay.cs
- sitestring.cs
- DrawTreeNodeEventArgs.cs
- DataStreamFromComStream.cs
- WsatConfiguration.cs
- ExtenderProvidedPropertyAttribute.cs
- WebBaseEventKeyComparer.cs
- RepeatInfo.cs
- PasswordRecovery.cs
- BufferCache.cs
- Subtree.cs
- HScrollBar.cs
- ObjectSet.cs
- CollaborationHelperFunctions.cs
- LiteralSubsegment.cs
- DbParameterCollection.cs
- DeflateInput.cs
- InstanceCreationEditor.cs
- SqlFactory.cs
- SvcMapFileSerializer.cs
- webproxy.cs
- PointAnimation.cs
- ColumnReorderedEventArgs.cs
- ObjectDisposedException.cs
- PropertyGroupDescription.cs
- CodeDelegateCreateExpression.cs
- DocumentGridPage.cs
- RoutedEventHandlerInfo.cs
- Function.cs
- TraceUtility.cs
- _SpnDictionary.cs
- EventLogWatcher.cs
- WebEventCodes.cs
- Accessible.cs
- IgnoreDeviceFilterElementCollection.cs
- ProfileProvider.cs
- TrackingParameters.cs
- ContentPresenter.cs
- PrinterResolution.cs
- MeshGeometry3D.cs
- TextRangeEdit.cs
- CheckedListBox.cs
- XMLSyntaxException.cs
- BorderGapMaskConverter.cs
- IPipelineRuntime.cs
- WindowAutomationPeer.cs
- SimpleWebHandlerParser.cs
- TraceXPathNavigator.cs
- NonClientArea.cs
- assemblycache.cs
- HtmlInputImage.cs
- CommonObjectSecurity.cs
- JapaneseCalendar.cs
- DynamicMethod.cs
- SQLDouble.cs
- CodeLabeledStatement.cs
- GuidTagList.cs
- DetailsViewPageEventArgs.cs
- StateInitialization.cs
- CqlBlock.cs
- ApplyTemplatesAction.cs
- SchemaNotation.cs
- DrawingAttributes.cs
- NameGenerator.cs
- Automation.cs
- CqlLexer.cs
- IconBitmapDecoder.cs
- TraceContextEventArgs.cs
- SystemColors.cs
- SimpleBitVector32.cs
- PenContexts.cs
- WindowsRebar.cs
- TableCellCollection.cs
- XmlCharacterData.cs
- Latin1Encoding.cs
- _BufferOffsetSize.cs
- Animatable.cs
- SortAction.cs
- TextDataBindingHandler.cs
- Vector3DCollection.cs
- TextServicesCompartmentContext.cs
- GroupBox.cs
- COM2TypeInfoProcessor.cs
- Setter.cs