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
- WebServiceReceiveDesigner.cs
- COM2ExtendedBrowsingHandler.cs
- SessionParameter.cs
- TraceSource.cs
- DataGridViewComboBoxEditingControl.cs
- DBDataPermission.cs
- FactoryMaker.cs
- CodeDOMUtility.cs
- CultureInfoConverter.cs
- ViewStateException.cs
- WsrmTraceRecord.cs
- UdpChannelFactory.cs
- MappingException.cs
- XmlSerializerNamespaces.cs
- PassportIdentity.cs
- WindowPatternIdentifiers.cs
- DashStyle.cs
- FontSourceCollection.cs
- ContentDisposition.cs
- BasicHttpBindingElement.cs
- ErrorHandler.cs
- SectionInput.cs
- PassportAuthentication.cs
- SqlDataRecord.cs
- TiffBitmapDecoder.cs
- DataColumnMapping.cs
- FigureParaClient.cs
- PropVariant.cs
- MissingManifestResourceException.cs
- DictionarySectionHandler.cs
- EventProviderWriter.cs
- PriorityBindingExpression.cs
- ExpanderAutomationPeer.cs
- RTLAwareMessageBox.cs
- RegisteredExpandoAttribute.cs
- AdapterDictionary.cs
- ReadOnlyHierarchicalDataSource.cs
- CompoundFileStorageReference.cs
- JumpList.cs
- MouseCaptureWithinProperty.cs
- OleDbConnectionFactory.cs
- TransactionProtocol.cs
- Cursors.cs
- BitmapEffectDrawingContextWalker.cs
- ByteStreamMessageEncoderFactory.cs
- DiscriminatorMap.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlSchemaGroupRef.cs
- ObjectResult.cs
- MethodBody.cs
- ACE.cs
- SettingsAttributeDictionary.cs
- EpmSyndicationContentSerializer.cs
- MD5CryptoServiceProvider.cs
- SqlHelper.cs
- MaskDescriptor.cs
- ChangeInterceptorAttribute.cs
- CfgArc.cs
- TemplateEditingVerb.cs
- FirstQueryOperator.cs
- ObjectViewQueryResultData.cs
- CounterSampleCalculator.cs
- BamlReader.cs
- StrokeNodeOperations2.cs
- XmlWhitespace.cs
- ModuleConfigurationInfo.cs
- TableLayoutSettings.cs
- StorageModelBuildProvider.cs
- streamingZipPartStream.cs
- StringWriter.cs
- JapaneseCalendar.cs
- IndexExpression.cs
- ProfileServiceManager.cs
- EventSource.cs
- ReliabilityContractAttribute.cs
- XsltQilFactory.cs
- BooleanStorage.cs
- StringValueConverter.cs
- HttpProfileBase.cs
- TableLayoutSettings.cs
- ParenthesizePropertyNameAttribute.cs
- ViewLoader.cs
- DataGridViewRowStateChangedEventArgs.cs
- TraceContextEventArgs.cs
- AsyncStreamReader.cs
- Utility.cs
- Command.cs
- NetworkInformationException.cs
- ArgumentFixer.cs
- Preprocessor.cs
- XmlObjectSerializerWriteContext.cs
- ItemsPresenter.cs
- ShadowGlyph.cs
- EventLog.cs
- WindowsTitleBar.cs
- QuadraticBezierSegment.cs
- Renderer.cs
- UIElement3DAutomationPeer.cs
- EventListenerClientSide.cs
- ListBoxChrome.cs