Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / HttpRequestTraceRecord.cs / 1 / HttpRequestTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System; using System.Xml; using System.Web; using System.Collections.Specialized; class HttpRequestTraceRecord : TraceRecord { HttpRequest request; internal HttpRequestTraceRecord(HttpRequest request) { this.request = request; } internal override string EventId { get { return TraceRecord.EventIdBase + "HttpRequest" + TraceRecord.NamespaceSuffix; } } internal override void WriteTo(XmlWriter writer) { writer.WriteStartElement("Headers"); foreach (string key in this.request.Headers.Keys) { writer.WriteElementString(key, this.request.Headers[key]); } writer.WriteEndElement(); writer.WriteElementString("Path", this.request.Path); if (this.request.QueryString != null && this.request.QueryString.Count > 0) { writer.WriteStartElement("QueryString"); foreach (string key in this.request.QueryString.Keys) { writer.WriteElementString(key, this.request.Headers[key]); } writer.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
- PointAnimationClockResource.cs
- PropertyIDSet.cs
- FormsAuthenticationCredentials.cs
- FlowDocument.cs
- KnownTypesHelper.cs
- EventSetter.cs
- TypeConverterMarkupExtension.cs
- ContentTextAutomationPeer.cs
- MarkupWriter.cs
- WindowClosedEventArgs.cs
- CheckBoxFlatAdapter.cs
- QfeChecker.cs
- ApplicationServiceHelper.cs
- Quad.cs
- WorkflowMarkupSerializer.cs
- ProgressPage.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RegexRunner.cs
- DataErrorValidationRule.cs
- DependencyPropertyHelper.cs
- WorkerRequest.cs
- SamlAuthorizationDecisionStatement.cs
- GenericEnumConverter.cs
- ToolStripOverflow.cs
- WebPartsPersonalizationAuthorization.cs
- GetCardDetailsRequest.cs
- FileInfo.cs
- DocumentPageTextView.cs
- dtdvalidator.cs
- ContentFileHelper.cs
- SpecularMaterial.cs
- SmtpTransport.cs
- EdmPropertyAttribute.cs
- MatchingStyle.cs
- OdbcInfoMessageEvent.cs
- _ConnectStream.cs
- LookupBindingPropertiesAttribute.cs
- XComponentModel.cs
- InkPresenter.cs
- DeflateEmulationStream.cs
- ProfileEventArgs.cs
- UIntPtr.cs
- ProviderManager.cs
- OleDbInfoMessageEvent.cs
- exports.cs
- BitmapMetadataBlob.cs
- HierarchicalDataSourceControl.cs
- parserscommon.cs
- unsafeIndexingFilterStream.cs
- SemanticResultValue.cs
- ServiceDiscoveryElement.cs
- CalendarModeChangedEventArgs.cs
- arabicshape.cs
- TextTabProperties.cs
- querybuilder.cs
- InlineUIContainer.cs
- CodeExpressionCollection.cs
- CmsUtils.cs
- PngBitmapEncoder.cs
- CustomPopupPlacement.cs
- UpDownEvent.cs
- IisTraceWebEventProvider.cs
- EntityType.cs
- WorkflowHostingEndpoint.cs
- AppSettingsReader.cs
- ConfigXmlCDataSection.cs
- DefaultSerializationProviderAttribute.cs
- SmtpReplyReaderFactory.cs
- DynamicDiscoveryDocument.cs
- ExecutionEngineException.cs
- SystemUnicastIPAddressInformation.cs
- PasswordPropertyTextAttribute.cs
- SamlSerializer.cs
- UIElement.cs
- WindowsStatic.cs
- UnsafeNativeMethodsCLR.cs
- InvokeMemberBinder.cs
- DiagnosticsConfigurationHandler.cs
- NamedPipeProcessProtocolHandler.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DataControlExtensions.cs
- DPCustomTypeDescriptor.cs
- MatrixCamera.cs
- UnsafeNativeMethods.cs
- CustomTypeDescriptor.cs
- HandledMouseEvent.cs
- BuildProviderAppliesToAttribute.cs
- LayoutSettings.cs
- WindowsClaimSet.cs
- LineMetrics.cs
- ExtensionDataObject.cs
- ControlPager.cs
- X509SecurityTokenAuthenticator.cs
- BitmapData.cs
- WebPartDescriptionCollection.cs
- WebPart.cs
- ToolStripItemImageRenderEventArgs.cs
- String.cs
- ObjectViewQueryResultData.cs
- RelatedPropertyManager.cs