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
- BindingListCollectionView.cs
- WindowsTokenRoleProvider.cs
- Operators.cs
- TextSimpleMarkerProperties.cs
- CodeAttributeArgumentCollection.cs
- DummyDataSource.cs
- XmlLinkedNode.cs
- EntitySqlQueryBuilder.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- FtpWebRequest.cs
- SharedDp.cs
- ContractListAdapter.cs
- PointUtil.cs
- ContextStack.cs
- SamlConstants.cs
- ViewBase.cs
- WebPartManager.cs
- AutomationElement.cs
- ComponentEditorPage.cs
- BinaryObjectReader.cs
- MaskedTextBox.cs
- EntityContainerEmitter.cs
- EventOpcode.cs
- PropertyPathConverter.cs
- StylusDownEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- IISMapPath.cs
- RangeValidator.cs
- PerSessionInstanceContextProvider.cs
- WebSysDescriptionAttribute.cs
- SchemaImporter.cs
- ServiceOperationParameter.cs
- SupportsEventValidationAttribute.cs
- GlobalDataBindingHandler.cs
- TrackingStringDictionary.cs
- InlinedAggregationOperator.cs
- CodeSnippetTypeMember.cs
- PositiveTimeSpanValidatorAttribute.cs
- Timer.cs
- SqlAliaser.cs
- XPathNodeIterator.cs
- MiniLockedBorderGlyph.cs
- InlinedLocationReference.cs
- EncoderReplacementFallback.cs
- BulletDecorator.cs
- TextRunCacheImp.cs
- TemplateContent.cs
- ContainerCodeDomSerializer.cs
- XmlIlVisitor.cs
- CopyOfAction.cs
- DesignerSerializationOptionsAttribute.cs
- ObjectPersistData.cs
- AssemblyUtil.cs
- HttpRuntimeSection.cs
- TemplateField.cs
- SkipStoryboardToFill.cs
- GeneratedContractType.cs
- IgnoreFlushAndCloseStream.cs
- BinaryConverter.cs
- _HeaderInfoTable.cs
- EntityContainer.cs
- IIS7ConfigurationLoader.cs
- InstanceDescriptor.cs
- TextContainer.cs
- TriggerAction.cs
- RemotingConfiguration.cs
- AddInPipelineAttributes.cs
- HtmlShimManager.cs
- GlyphRun.cs
- JavaScriptSerializer.cs
- DeviceContext.cs
- ContextInformation.cs
- CodeAccessSecurityEngine.cs
- UserNameServiceElement.cs
- InstanceKey.cs
- GroupBox.cs
- DataGridBoolColumn.cs
- VariantWrapper.cs
- RangeValidator.cs
- Privilege.cs
- DbQueryCommandTree.cs
- New.cs
- RoutingUtilities.cs
- SystemDiagnosticsSection.cs
- Misc.cs
- ConstraintConverter.cs
- EmptyCollection.cs
- SiteMapProvider.cs
- ConnectionsZoneDesigner.cs
- UserInitiatedRoutedEventPermission.cs
- ValueUnavailableException.cs
- MutexSecurity.cs
- PropertyConverter.cs
- WebPartHeaderCloseVerb.cs
- TypefaceMap.cs
- SqlRowUpdatingEvent.cs
- Point.cs
- NativeMsmqMessage.cs
- ReachFixedPageSerializerAsync.cs
- EntityFrameworkVersions.cs