Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / MessageHeaderInfoTraceRecord.cs / 1 / MessageHeaderInfoTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System; using System.ServiceModel.Channels; using System.ServiceModel; using System.Diagnostics; using System.Globalization; using System.IdentityModel.Claims; using System.IdentityModel.Policy; using System.Xml; using System.Xml.Serialization; internal sealed class MessageHeaderInfoTraceRecord : TraceRecord { MessageHeaderInfo messageHeaderInfo; internal MessageHeaderInfoTraceRecord(MessageHeaderInfo messageHeaderInfo) { this.messageHeaderInfo = messageHeaderInfo; } internal override string EventId { get { return TraceRecord.EventIdBase + "MessageHeaderInfo" + TraceRecord.NamespaceSuffix; } } internal override void WriteTo(XmlWriter xml) { if (this.messageHeaderInfo != null) { xml.WriteStartElement("MessageHeaderInfo"); if (!string.IsNullOrEmpty(this.messageHeaderInfo.Actor)) { xml.WriteElementString("Actor", this.messageHeaderInfo.Actor); } xml.WriteElementString("MustUnderstand", this.messageHeaderInfo.MustUnderstand.ToString()); if (!string.IsNullOrEmpty(this.messageHeaderInfo.Name)) { xml.WriteElementString("Name", this.messageHeaderInfo.Name); } xml.WriteElementString("Relay", this.messageHeaderInfo.Relay.ToString()); if (!string.IsNullOrEmpty(this.messageHeaderInfo.Namespace)) { xml.WriteElementString("Namespace", this.messageHeaderInfo.Namespace); } xml.WriteEndElement(); } } } } // 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
- TextServicesDisplayAttributePropertyRanges.cs
- localization.cs
- DefaultAsyncDataDispatcher.cs
- HttpPostedFile.cs
- ExternalFile.cs
- TrustSection.cs
- ConfigurationManagerHelper.cs
- TableStyle.cs
- SQLInt64.cs
- SqlConnectionPoolProviderInfo.cs
- DefinitionBase.cs
- TableDetailsCollection.cs
- IndicShape.cs
- HideDisabledControlAdapter.cs
- XhtmlBasicTextBoxAdapter.cs
- TemplateAction.cs
- DataViewManager.cs
- RawStylusInputCustomDataList.cs
- FormViewDeleteEventArgs.cs
- IndicFontClient.cs
- DataGridViewCellLinkedList.cs
- TypeDelegator.cs
- UdpTransportSettings.cs
- Matrix3D.cs
- ActivityBindForm.Designer.cs
- HtmlDocument.cs
- GridProviderWrapper.cs
- LookupNode.cs
- dsa.cs
- Border.cs
- ListenerSessionConnection.cs
- PresentationAppDomainManager.cs
- Camera.cs
- EventMappingSettings.cs
- KnownTypesProvider.cs
- OleServicesContext.cs
- ConfigurationConverterBase.cs
- NestedContainer.cs
- StateMachineAction.cs
- WizardPanel.cs
- CompressionTransform.cs
- PreProcessInputEventArgs.cs
- DataGridViewRow.cs
- XamlGridLengthSerializer.cs
- FileLoadException.cs
- ToolStripTextBox.cs
- SystemIcons.cs
- GridViewHeaderRowPresenter.cs
- ObjectTypeMapping.cs
- RegexTypeEditor.cs
- XmlComment.cs
- CustomDictionarySources.cs
- EntityDataSourceSelectingEventArgs.cs
- DbConnectionPoolGroup.cs
- SizeAnimationClockResource.cs
- InputProcessorProfiles.cs
- XPathNavigatorKeyComparer.cs
- GridViewSortEventArgs.cs
- OleDbParameterCollection.cs
- MatchingStyle.cs
- RepeatInfo.cs
- FormatSettings.cs
- TreeView.cs
- sqlinternaltransaction.cs
- FileInfo.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SplitterPanel.cs
- SystemColorTracker.cs
- Models.cs
- XmlSchemaSimpleContentRestriction.cs
- ToolStripProgressBar.cs
- GetIsBrowserClientRequest.cs
- RequestCacheEntry.cs
- FloaterParagraph.cs
- SystemEvents.cs
- Mouse.cs
- EntityParameterCollection.cs
- WmlObjectListAdapter.cs
- AssociatedControlConverter.cs
- IgnorePropertiesAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataGrid.cs
- LocalizationParserHooks.cs
- DockAndAnchorLayout.cs
- ResourceDescriptionAttribute.cs
- CmsUtils.cs
- RsaEndpointIdentity.cs
- RowToFieldTransformer.cs
- HwndTarget.cs
- Point3DValueSerializer.cs
- NativeMethodsCLR.cs
- ToolStripItemClickedEventArgs.cs
- SectionVisual.cs
- NestPullup.cs
- TraceSection.cs
- Content.cs
- DataComponentMethodGenerator.cs
- Dictionary.cs
- LayoutTable.cs
- ValidationSummary.cs