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
- DeflateEmulationStream.cs
- WmlValidationSummaryAdapter.cs
- ModelTreeEnumerator.cs
- StickyNoteContentControl.cs
- HtmlTableCell.cs
- RuntimeArgumentHandle.cs
- BulletChrome.cs
- DockPattern.cs
- SectionUpdates.cs
- DetailsViewRow.cs
- FilterElement.cs
- AncestorChangedEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- GridViewAutomationPeer.cs
- arclist.cs
- TaskExceptionHolder.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- SQLBinary.cs
- KnownTypes.cs
- ThemeableAttribute.cs
- WebSysDescriptionAttribute.cs
- wmiutil.cs
- InternalEnumValidator.cs
- ToolStripSplitButton.cs
- IntSecurity.cs
- StylusEditingBehavior.cs
- PeerEndPoint.cs
- GeneratedContractType.cs
- StringAnimationBase.cs
- DeferredElementTreeState.cs
- RangeValidator.cs
- CfgRule.cs
- RemoteWebConfigurationHost.cs
- CachingHintValidation.cs
- GenericUriParser.cs
- DiagnosticsConfiguration.cs
- XmlSerializerSection.cs
- dtdvalidator.cs
- ImageIndexConverter.cs
- HtmlInputControl.cs
- ProviderSettings.cs
- LineServices.cs
- QuaternionAnimation.cs
- WebPartActionVerb.cs
- Typeface.cs
- WebPartTransformerCollection.cs
- XmlTypeAttribute.cs
- CircleHotSpot.cs
- StylusPointPropertyUnit.cs
- Label.cs
- LineInfo.cs
- Function.cs
- SystemDropShadowChrome.cs
- WebPartExportVerb.cs
- SQLSingleStorage.cs
- HttpMethodConstraint.cs
- OdbcConnection.cs
- VariableReference.cs
- TokenBasedSet.cs
- FontStretches.cs
- altserialization.cs
- _AcceptOverlappedAsyncResult.cs
- OperationFormatUse.cs
- DragCompletedEventArgs.cs
- SqlGenericUtil.cs
- XmlUtil.cs
- CharEnumerator.cs
- PropertyPushdownHelper.cs
- ProtectedConfigurationProviderCollection.cs
- DrawingContextWalker.cs
- ConfigXmlSignificantWhitespace.cs
- ConfigurationSettings.cs
- EntityDataSourceContainerNameItem.cs
- Hyperlink.cs
- WindowsFont.cs
- Enumerable.cs
- Vector3DKeyFrameCollection.cs
- DataGridSortCommandEventArgs.cs
- DocumentXmlWriter.cs
- IdentityReference.cs
- CompositeDesignerAccessibleObject.cs
- MarkupCompilePass1.cs
- WorkBatch.cs
- BitmapEffectrendercontext.cs
- ObjectPersistData.cs
- OlePropertyStructs.cs
- SafeLocalMemHandle.cs
- Panel.cs
- FormClosedEvent.cs
- UniqueConstraint.cs
- XamlToRtfWriter.cs
- ToolStripOverflowButton.cs
- CellConstantDomain.cs
- SqlDataSourceSelectingEventArgs.cs
- HTTPRemotingHandler.cs
- AnnotationAdorner.cs
- WebPartUtil.cs
- RawAppCommandInputReport.cs
- UrlPath.cs
- WindowsTab.cs