mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
92 lines
2.4 KiB
C#
92 lines
2.4 KiB
C#
//------------------------------------------------------------
|
|
// 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);
|
|
}
|
|
}
|
|
}
|