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
- JsonDeserializer.cs
- MarkerProperties.cs
- HtmlHead.cs
- CheckedListBox.cs
- ButtonChrome.cs
- ListViewInsertEventArgs.cs
- StylusButton.cs
- TCPListener.cs
- Storyboard.cs
- FlowDocumentReaderAutomationPeer.cs
- WorkflowRuntimeBehavior.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- JoinCqlBlock.cs
- ExpressionConverter.cs
- FixedNode.cs
- InsufficientMemoryException.cs
- DynamicRenderer.cs
- SchemaDeclBase.cs
- DataRowExtensions.cs
- LinqDataSourceSelectEventArgs.cs
- BaseDataListDesigner.cs
- RemoteWebConfigurationHost.cs
- LabelEditEvent.cs
- __ComObject.cs
- InfoCardSchemas.cs
- JsonReaderWriterFactory.cs
- Viewport2DVisual3D.cs
- TableRowCollection.cs
- MulticastNotSupportedException.cs
- MatcherBuilder.cs
- AttributeXamlType.cs
- MediaPlayerState.cs
- DrawToolTipEventArgs.cs
- ControlDesigner.cs
- TimeoutHelper.cs
- log.cs
- SmtpTransport.cs
- DebugController.cs
- _RequestCacheProtocol.cs
- TemplateBuilder.cs
- ImageSource.cs
- CheckBoxFlatAdapter.cs
- PartitionResolver.cs
- PerformanceCounterPermission.cs
- Executor.cs
- SmiEventSink_Default.cs
- basecomparevalidator.cs
- WebContext.cs
- WebPartMenu.cs
- SortDescriptionCollection.cs
- SiteMapNodeItemEventArgs.cs
- MouseBinding.cs
- PriorityBindingExpression.cs
- SamlDoNotCacheCondition.cs
- InputScopeConverter.cs
- CodeTypeParameter.cs
- Utils.cs
- InputProcessorProfiles.cs
- GlobalProxySelection.cs
- TraceProvider.cs
- DataSourceXmlTextReader.cs
- TimelineGroup.cs
- AnimationLayer.cs
- TranslateTransform.cs
- DetailsViewCommandEventArgs.cs
- TableLayoutStyleCollection.cs
- GlyphCollection.cs
- InvalidCastException.cs
- securestring.cs
- AssemblyHash.cs
- ListViewItem.cs
- Behavior.cs
- PointCollection.cs
- XhtmlBasicListAdapter.cs
- HttpCookieCollection.cs
- ArcSegment.cs
- PersonalizationStateInfoCollection.cs
- LocatorPart.cs
- DoubleLink.cs
- ProfileProvider.cs
- RoutedEventArgs.cs
- ByeMessageCD1.cs
- ObjectDataSourceStatusEventArgs.cs
- ConfigXmlAttribute.cs
- DbDataRecord.cs
- AccessedThroughPropertyAttribute.cs
- SqlComparer.cs
- InstalledVoice.cs
- DictionaryContent.cs
- DataConnectionHelper.cs
- BrushValueSerializer.cs
- SplitterPanelDesigner.cs
- CqlLexer.cs
- KeyPullup.cs
- ToReply.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- PropertyInformationCollection.cs
- CellTreeNodeVisitors.cs
- ToolStripStatusLabel.cs
- ModifierKeysConverter.cs