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
- shaper.cs
- WorkflowCommandExtensionItem.cs
- CodeParameterDeclarationExpression.cs
- NativeObjectSecurity.cs
- StrongNamePublicKeyBlob.cs
- StandardBindingReliableSessionElement.cs
- ChildTable.cs
- DynamicAttribute.cs
- ColorBuilder.cs
- EmptyQuery.cs
- StorageEndPropertyMapping.cs
- WindowsSlider.cs
- FontCollection.cs
- ValidationSummary.cs
- DeferredSelectedIndexReference.cs
- QuaternionConverter.cs
- ListControl.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- METAHEADER.cs
- StandardToolWindows.cs
- DiscoveryMessageSequence11.cs
- DateTimeFormatInfo.cs
- Dispatcher.cs
- SamlSecurityTokenAuthenticator.cs
- ApplicationFileParser.cs
- AnimationTimeline.cs
- _ChunkParse.cs
- GridViewRowCollection.cs
- GlyphInfoList.cs
- RootNamespaceAttribute.cs
- BamlTreeUpdater.cs
- InputProcessorProfiles.cs
- ETagAttribute.cs
- XmlSchemaImport.cs
- ResourceType.cs
- Publisher.cs
- WindowsStatusBar.cs
- DetailsView.cs
- AssociativeAggregationOperator.cs
- CustomExpressionEventArgs.cs
- Substitution.cs
- TextDecorationCollection.cs
- QilLoop.cs
- DefaultSettingsSection.cs
- XmlQueryType.cs
- DependencyProperty.cs
- QueryCacheEntry.cs
- StringStorage.cs
- SvcMapFileSerializer.cs
- ReflectionPermission.cs
- CodeGeneratorAttribute.cs
- RecognitionEventArgs.cs
- RectConverter.cs
- TypeUnloadedException.cs
- HostingEnvironmentException.cs
- OleDbMetaDataFactory.cs
- EncryptedType.cs
- RotateTransform3D.cs
- ArgumentNullException.cs
- RemoveStoryboard.cs
- RadioButtonFlatAdapter.cs
- WebPartDisplayMode.cs
- EraserBehavior.cs
- EntityDataSourceReferenceGroup.cs
- SplayTreeNode.cs
- UnknownWrapper.cs
- GridViewDeleteEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- Errors.cs
- ValidateNames.cs
- RegexWriter.cs
- ImpersonateTokenRef.cs
- TimeoutHelper.cs
- RtfToXamlReader.cs
- HttpDictionary.cs
- XmlSchemaAnnotated.cs
- WriteFileContext.cs
- CurrentChangingEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- TransformPatternIdentifiers.cs
- DoubleSumAggregationOperator.cs
- WebResponse.cs
- MonitorWrapper.cs
- Function.cs
- AssemblySettingAttributes.cs
- XmlSubtreeReader.cs
- InfoCardMetadataExchangeClient.cs
- SafePointer.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Configuration.cs
- MoveSizeWinEventHandler.cs
- ExpressionHelper.cs
- ScriptDescriptor.cs
- SqlXmlStorage.cs
- XmlWrappingReader.cs
- TransformerConfigurationWizardBase.cs
- SocketAddress.cs
- MetadataArtifactLoaderCompositeFile.cs
- CreateUserErrorEventArgs.cs
- PenThreadPool.cs