scripts
This commit is contained in:
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Runtime.Remoting.Metadata
|
||||
{
|
||||
/// <summary>Customizes SOAP generation and processing for a method. This class cannot be inherited.</summary>
|
||||
// Token: 0x0200042C RID: 1068
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
[ComVisible(true)]
|
||||
public sealed class SoapMethodAttribute : SoapAttribute
|
||||
{
|
||||
/// <summary>Gets or sets the XML element name to use for the method response to the target method.</summary>
|
||||
/// <returns>The XML element name to use for the method response to the target method.</returns>
|
||||
// Token: 0x1700082E RID: 2094
|
||||
// (get) Token: 0x0600295C RID: 10588 RVA: 0x0008525C File Offset: 0x0008345C
|
||||
// (set) Token: 0x0600295D RID: 10589 RVA: 0x00085264 File Offset: 0x00083464
|
||||
public string ResponseXmlElementName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._responseElement;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._responseElement = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the XML element namesapce used for method response to the target method.</summary>
|
||||
/// <returns>The XML element namesapce used for method response to the target method.</returns>
|
||||
// Token: 0x1700082F RID: 2095
|
||||
// (get) Token: 0x0600295E RID: 10590 RVA: 0x00085270 File Offset: 0x00083470
|
||||
// (set) Token: 0x0600295F RID: 10591 RVA: 0x00085278 File Offset: 0x00083478
|
||||
public string ResponseXmlNamespace
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._responseNamespace;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._responseNamespace = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the XML element name used for the return value from the target method.</summary>
|
||||
/// <returns>The XML element name used for the return value from the target method.</returns>
|
||||
// Token: 0x17000830 RID: 2096
|
||||
// (get) Token: 0x06002960 RID: 10592 RVA: 0x00085284 File Offset: 0x00083484
|
||||
// (set) Token: 0x06002961 RID: 10593 RVA: 0x0008528C File Offset: 0x0008348C
|
||||
public string ReturnXmlElementName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._returnElement;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._returnElement = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the SOAPAction header field used with HTTP requests sent with this method. This property is currently not implemented.</summary>
|
||||
/// <returns>The SOAPAction header field used with HTTP requests sent with this method.</returns>
|
||||
// Token: 0x17000831 RID: 2097
|
||||
// (get) Token: 0x06002962 RID: 10594 RVA: 0x00085298 File Offset: 0x00083498
|
||||
// (set) Token: 0x06002963 RID: 10595 RVA: 0x000852A0 File Offset: 0x000834A0
|
||||
public string SoapAction
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._soapAction;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._soapAction = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value indicating whether the target of the current attribute will be serialized as an XML attribute instead of an XML field.</summary>
|
||||
/// <returns>The current implementation always returns false.</returns>
|
||||
/// <exception cref="T:System.Runtime.Remoting.RemotingException">An attempt was made to set the current property. </exception>
|
||||
// Token: 0x17000832 RID: 2098
|
||||
// (get) Token: 0x06002964 RID: 10596 RVA: 0x000852AC File Offset: 0x000834AC
|
||||
// (set) Token: 0x06002965 RID: 10597 RVA: 0x000852B4 File Offset: 0x000834B4
|
||||
public override bool UseAttribute
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._useAttribute;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._useAttribute = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the XML namespace that is used during serialization of remote method calls of the target method.</summary>
|
||||
/// <returns>The XML namespace that is used during serialization of remote method calls of the target method.</returns>
|
||||
// Token: 0x17000833 RID: 2099
|
||||
// (get) Token: 0x06002966 RID: 10598 RVA: 0x000852C0 File Offset: 0x000834C0
|
||||
// (set) Token: 0x06002967 RID: 10599 RVA: 0x000852C8 File Offset: 0x000834C8
|
||||
public override string XmlNamespace
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._namespace;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._namespace = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002968 RID: 10600 RVA: 0x000852D4 File Offset: 0x000834D4
|
||||
internal override void SetReflectionObject(object reflectionObject)
|
||||
{
|
||||
MethodBase methodBase = (MethodBase)reflectionObject;
|
||||
if (this._responseElement == null)
|
||||
{
|
||||
this._responseElement = methodBase.Name + "Response";
|
||||
}
|
||||
if (this._responseNamespace == null)
|
||||
{
|
||||
this._responseNamespace = SoapServices.GetXmlNamespaceForMethodResponse(methodBase);
|
||||
}
|
||||
if (this._returnElement == null)
|
||||
{
|
||||
this._returnElement = "return";
|
||||
}
|
||||
if (this._soapAction == null)
|
||||
{
|
||||
this._soapAction = SoapServices.GetXmlNamespaceForMethodCall(methodBase) + "#" + methodBase.Name;
|
||||
}
|
||||
if (this._namespace == null)
|
||||
{
|
||||
this._namespace = SoapServices.GetXmlNamespaceForMethodCall(methodBase);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000FD8 RID: 4056
|
||||
private string _responseElement;
|
||||
|
||||
// Token: 0x04000FD9 RID: 4057
|
||||
private string _responseNamespace;
|
||||
|
||||
// Token: 0x04000FDA RID: 4058
|
||||
private string _returnElement;
|
||||
|
||||
// Token: 0x04000FDB RID: 4059
|
||||
private string _soapAction;
|
||||
|
||||
// Token: 0x04000FDC RID: 4060
|
||||
private bool _useAttribute;
|
||||
|
||||
// Token: 0x04000FDD RID: 4061
|
||||
private string _namespace;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user