Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / DelegatingMessage.cs / 1 / DelegatingMessage.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Xml; using System.ServiceModel.Channels; abstract class DelegatingMessage : Message { Message innerMessage; protected DelegatingMessage(Message innerMessage) { if (innerMessage == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerMessage"); } this.innerMessage = innerMessage; } public override bool IsEmpty { get { return this.innerMessage.IsEmpty; } } public override bool IsFault { get { return this.innerMessage.IsFault; } } public override MessageHeaders Headers { get { return this.innerMessage.Headers; } } public override MessageProperties Properties { get { return this.innerMessage.Properties; } } public override MessageVersion Version { get { return this.innerMessage.Version; } } protected Message InnerMessage { get { return this.innerMessage; } } protected override void OnClose() { base.OnClose(); this.innerMessage.Close(); } protected override void OnWriteStartEnvelope(XmlDictionaryWriter writer) { this.innerMessage.WriteStartEnvelope(writer); } protected override void OnWriteStartHeaders(XmlDictionaryWriter writer) { this.innerMessage.WriteStartHeaders(writer); } protected override void OnWriteStartBody(XmlDictionaryWriter writer) { this.innerMessage.WriteStartBody(writer); } protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { this.innerMessage.WriteBodyContents(writer); } protected override string OnGetBodyAttribute(string localName, string ns) { return this.innerMessage.GetBodyAttribute(localName, ns); } protected override void OnBodyToString(XmlDictionaryWriter writer) { this.innerMessage.BodyToString(writer); } } } // 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
- CommentGlyph.cs
- MinMaxParagraphWidth.cs
- CodeAttributeArgument.cs
- DataControlCommands.cs
- ByteStorage.cs
- EntityReference.cs
- Pick.cs
- NullRuntimeConfig.cs
- AffineTransform3D.cs
- BitmapCodecInfo.cs
- AsymmetricSecurityProtocol.cs
- DataGridViewDataErrorEventArgs.cs
- GridViewSelectEventArgs.cs
- StringUtil.cs
- EntityTypeEmitter.cs
- ListDictionary.cs
- SystemWebSectionGroup.cs
- GorillaCodec.cs
- BooleanToVisibilityConverter.cs
- WorkflowViewManager.cs
- DataColumn.cs
- DataGridPageChangedEventArgs.cs
- ThreadStateException.cs
- JsonXmlDataContract.cs
- Composition.cs
- RowToParametersTransformer.cs
- OverflowException.cs
- InfoCardXmlSerializer.cs
- SqlDataSourceCache.cs
- StoreItemCollection.Loader.cs
- NamedPipeProcessProtocolHandler.cs
- DetailsViewUpdateEventArgs.cs
- PropertyGridEditorPart.cs
- Events.cs
- UserControlParser.cs
- FloatSumAggregationOperator.cs
- TypeSystemHelpers.cs
- NotificationContext.cs
- DocumentSequenceHighlightLayer.cs
- DataSourceControlBuilder.cs
- DbFunctionCommandTree.cs
- MetadataWorkspace.cs
- DeviceContexts.cs
- Triangle.cs
- SwitchCase.cs
- QueueProcessor.cs
- PerfCounters.cs
- Certificate.cs
- ExpressionPrefixAttribute.cs
- ChameleonKey.cs
- PeerCollaboration.cs
- ReadOnlyHierarchicalDataSource.cs
- HttpException.cs
- Trace.cs
- ISCIIEncoding.cs
- FindCriteria11.cs
- DataSourceCollectionBase.cs
- NonceCache.cs
- UdpDiscoveryEndpoint.cs
- _BaseOverlappedAsyncResult.cs
- DetailsViewDeleteEventArgs.cs
- JsonFaultDetail.cs
- PerformanceCounterPermissionEntryCollection.cs
- AppDomain.cs
- ProfessionalColorTable.cs
- XmlHierarchicalDataSourceView.cs
- TemplateNameScope.cs
- DataGridTableCollection.cs
- OdbcErrorCollection.cs
- xml.cs
- WSHttpTransportSecurityElement.cs
- HostingEnvironmentException.cs
- GridViewUpdateEventArgs.cs
- UInt16.cs
- VScrollProperties.cs
- RegisteredExpandoAttribute.cs
- COM2IProvidePropertyBuilderHandler.cs
- TrimSurroundingWhitespaceAttribute.cs
- UriParserTemplates.cs
- ToolStripSeparatorRenderEventArgs.cs
- HasCopySemanticsAttribute.cs
- UidManager.cs
- ProfileGroupSettingsCollection.cs
- AssemblyCache.cs
- ExpressionVisitorHelpers.cs
- EndOfStreamException.cs
- InputBuffer.cs
- CryptographicAttribute.cs
- NamedObjectList.cs
- EncodingDataItem.cs
- HMAC.cs
- CodeActivity.cs
- HtmlInputText.cs
- ToolboxComponentsCreatingEventArgs.cs
- EventMap.cs
- SingleResultAttribute.cs
- securestring.cs
- ClientTarget.cs
- DataObjectSettingDataEventArgs.cs
- ToolBarTray.cs