Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Diagnostics / HttpListenerRequestTraceRecord.cs / 1 / HttpListenerRequestTraceRecord.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Diagnostics { using System; using System.Net; using System.Xml; class HttpListenerRequestTraceRecord : TraceRecord { HttpListenerRequest request; internal HttpListenerRequestTraceRecord(HttpListenerRequest 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("Url", this.request.Url.ToString()); 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
- MethodExpr.cs
- EqualityComparer.cs
- GetChildSubtree.cs
- TableLayoutColumnStyleCollection.cs
- WindowsTitleBar.cs
- isolationinterop.cs
- GridViewColumnHeader.cs
- UxThemeWrapper.cs
- Aggregates.cs
- MenuItemStyleCollection.cs
- DynamicMethod.cs
- GeneralTransformCollection.cs
- ExtensibleClassFactory.cs
- TableLayoutRowStyleCollection.cs
- RtfControlWordInfo.cs
- SqlMethodTransformer.cs
- LocalizationCodeDomSerializer.cs
- OrderedDictionaryStateHelper.cs
- indexingfiltermarshaler.cs
- AnimationStorage.cs
- localization.cs
- RegionData.cs
- ObjectListFieldCollection.cs
- Compiler.cs
- ObjectListItemCollection.cs
- Converter.cs
- SvcMapFileSerializer.cs
- DateTimeParse.cs
- FixedDocumentSequencePaginator.cs
- SqlExpander.cs
- NotifyParentPropertyAttribute.cs
- MiniCustomAttributeInfo.cs
- ProfileProvider.cs
- EventListener.cs
- SimpleType.cs
- XmlArrayAttribute.cs
- SingleObjectCollection.cs
- SourceFileBuildProvider.cs
- AddValidationError.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ColorTransform.cs
- TransformGroup.cs
- _FtpDataStream.cs
- SqlBulkCopy.cs
- StringToken.cs
- WindowsBrush.cs
- SecurityTokenResolver.cs
- BinaryWriter.cs
- ItemCollection.cs
- Parallel.cs
- KeySpline.cs
- InProcStateClientManager.cs
- DispatcherSynchronizationContext.cs
- PassportIdentity.cs
- FormatStringEditor.cs
- PngBitmapEncoder.cs
- GPPOINT.cs
- RectConverter.cs
- DataServiceResponse.cs
- NativeMethods.cs
- AQNBuilder.cs
- FtpWebRequest.cs
- PreparingEnlistment.cs
- ProfileSection.cs
- InfiniteTimeSpanConverter.cs
- RoleService.cs
- TrackBar.cs
- BulletedListEventArgs.cs
- CardSpaceShim.cs
- ImageFormatConverter.cs
- SubqueryRules.cs
- UserControl.cs
- WebPartConnectVerb.cs
- XmlDataCollection.cs
- PolicyStatement.cs
- XmlSchemaValidationException.cs
- EntityDesignerDataSourceView.cs
- IntegerValidatorAttribute.cs
- ConfigurationElementProperty.cs
- TextParagraph.cs
- UndoEngine.cs
- SQLDateTimeStorage.cs
- SqlFactory.cs
- StaticDataManager.cs
- NameSpaceEvent.cs
- MasterPage.cs
- PowerStatus.cs
- Propagator.JoinPropagator.cs
- XmlRawWriterWrapper.cs
- XsltOutput.cs
- TransformCollection.cs
- SqlExpander.cs
- Codec.cs
- PageCatalogPart.cs
- UnauthorizedAccessException.cs
- ScrollEventArgs.cs
- ModuleBuilderData.cs
- CodeMemberEvent.cs
- XmlEntity.cs
- RunClient.cs