Files
27Aug2021-Cpp2IL-Dump/System/Net/FileWebRequest.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

388 lines
15 KiB
C#

using System;
using System.IO;
using System.Runtime.Serialization;
using System.Threading;
using Cpp2IlInjected;
namespace System.Net
{
/// <summary>Provides a file system implementation of the <see cref="T:System.Net.WebRequest" /> class.</summary>
// Token: 0x02000263 RID: 611
[Token(Token = "0x2000263")]
[Serializable]
public class FileWebRequest : WebRequest, ISerializable
{
// Token: 0x06000F46 RID: 3910 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F46")]
[Address(RVA = "0xB2A810", Offset = "0xB29810", VA = "0x180B2A810")]
internal FileWebRequest(Uri uri)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.FileWebRequest" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object that contains the information that is required to serialize the new <see cref="T:System.Net.FileWebRequest" /> object.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> object that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.FileWebRequest" /> object.</param>
// Token: 0x06000F47 RID: 3911 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F47")]
[Address(RVA = "0xB2A570", Offset = "0xB29570", VA = "0x180B2A570")]
[Obsolete]
protected FileWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the required data to serialize the <see cref="T:System.Net.FileWebRequest" />.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized data for the <see cref="T:System.Net.FileWebRequest" />.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the destination of the serialized stream that is associated with the new <see cref="T:System.Net.FileWebRequest" />.</param>
// Token: 0x06000F48 RID: 3912 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F48")]
[Address(RVA = "0x77AA00", Offset = "0x779A00", VA = "0x18077AA00", Slot = "6")]
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
/// <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to populate with data.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for this serialization.</param>
// Token: 0x06000F49 RID: 3913 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F49")]
[Address(RVA = "0xB29BD0", Offset = "0xB28BD0", VA = "0x180B29BD0", Slot = "7")]
protected override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
// Token: 0x170002ED RID: 749
// (get) Token: 0x06000F4A RID: 3914 RVA: 0x00007758 File Offset: 0x00005958
[Token(Token = "0x170002ED")]
internal bool Aborted
{
[Token(Token = "0x6000F4A")]
[Address(RVA = "0xB2A940", Offset = "0xB29940", VA = "0x180B2A940")]
get
{
return default(bool);
}
}
/// <summary>Gets or sets the content length of the data being sent.</summary>
/// <returns>The number of bytes of request data being sent.</returns>
/// <exception cref="T:System.ArgumentException">
/// <see cref="P:System.Net.FileWebRequest.ContentLength" /> is less than 0.</exception>
// Token: 0x170002EE RID: 750
// (get) Token: 0x06000F4B RID: 3915 RVA: 0x00007770 File Offset: 0x00005970
// (set) Token: 0x06000F4C RID: 3916 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002EE")]
public override long ContentLength
{
[Token(Token = "0x6000F4B")]
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680", Slot = "14")]
get
{
return 0L;
}
[Token(Token = "0x6000F4C")]
[Address(RVA = "0xB2A950", Offset = "0xB29950", VA = "0x180B2A950", Slot = "15")]
set
{
}
}
/// <summary>Gets or sets the content type of the data being sent. This property is reserved for future use.</summary>
/// <returns>The content type of the data being sent.</returns>
// Token: 0x170002EF RID: 751
// (set) Token: 0x06000F4D RID: 3917 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002EF")]
public override string ContentType
{
[Token(Token = "0x6000F4D")]
[Address(RVA = "0xB2A9E0", Offset = "0xB299E0", VA = "0x180B2A9E0", Slot = "16")]
set
{
}
}
/// <summary>Gets or sets the credentials that are associated with this request. This property is reserved for future use.</summary>
/// <returns>An <see cref="T:System.Net.ICredentials" /> that contains the authentication credentials that are associated with this request. The default is <see langword="null" />.</returns>
// Token: 0x170002F0 RID: 752
// (get) Token: 0x06000F4E RID: 3918 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F4F RID: 3919 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F0")]
public override ICredentials Credentials
{
[Token(Token = "0x6000F4E")]
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "17")]
get
{
return null;
}
[Token(Token = "0x6000F4F")]
[Address(RVA = "0x55BCF0", Offset = "0x55ACF0", VA = "0x18055BCF0", Slot = "18")]
set
{
}
}
/// <summary>Gets a collection of the name/value pairs that are associated with the request. This property is reserved for future use.</summary>
/// <returns>A <see cref="T:System.Net.WebHeaderCollection" /> that contains header name/value pairs associated with this request.</returns>
// Token: 0x170002F1 RID: 753
// (get) Token: 0x06000F50 RID: 3920 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002F1")]
public override WebHeaderCollection Headers
{
[Token(Token = "0x6000F50")]
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "12")]
get
{
return null;
}
}
/// <summary>Gets or sets the protocol method used for the request. This property is reserved for future use.</summary>
/// <returns>The protocol method to use in this request.</returns>
/// <exception cref="T:System.ArgumentException">The method is invalid.
/// -or-
/// The method is not supported.
/// -or-
/// Multiple methods were specified.</exception>
// Token: 0x170002F2 RID: 754
// (get) Token: 0x06000F51 RID: 3921 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F52 RID: 3922 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F2")]
public override string Method
{
[Token(Token = "0x6000F51")]
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "9")]
get
{
return null;
}
[Token(Token = "0x6000F52")]
[Address(RVA = "0xB2AA40", Offset = "0xB29A40", VA = "0x180B2AA40", Slot = "10")]
set
{
}
}
/// <summary>Gets or sets the network proxy to use for this request. This property is reserved for future use.</summary>
/// <returns>An <see cref="T:System.Net.IWebProxy" /> that indicates the network proxy to use for this request.</returns>
// Token: 0x170002F3 RID: 755
// (get) Token: 0x06000F53 RID: 3923 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F54 RID: 3924 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F3")]
public override IWebProxy Proxy
{
[Token(Token = "0x6000F53")]
[Address(RVA = "0x4177D0", Offset = "0x4167D0", VA = "0x1804177D0", Slot = "19")]
get
{
return null;
}
[Token(Token = "0x6000F54")]
[Address(RVA = "0x417AC0", Offset = "0x416AC0", VA = "0x180417AC0", Slot = "20")]
set
{
}
}
/// <summary>Gets or sets the length of time until the request times out.</summary>
/// <returns>The time, in milliseconds, until the request times out, or the value <see cref="F:System.Threading.Timeout.Infinite" /> to indicate that the request does not time out.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
// Token: 0x170002F4 RID: 756
// (get) Token: 0x06000F55 RID: 3925 RVA: 0x00007788 File Offset: 0x00005988
[Token(Token = "0x170002F4")]
public override int Timeout
{
[Token(Token = "0x6000F55")]
[Address(RVA = "0x4969C0", Offset = "0x4959C0", VA = "0x1804969C0", Slot = "21")]
get
{
return 0;
}
}
/// <summary>Gets the Uniform Resource Identifier (URI) of the request.</summary>
/// <returns>A <see cref="T:System.Uri" /> that contains the URI of the request.</returns>
// Token: 0x170002F5 RID: 757
// (get) Token: 0x06000F56 RID: 3926 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002F5")]
public override Uri RequestUri
{
[Token(Token = "0x6000F56")]
[Address(RVA = "0x56D550", Offset = "0x56C550", VA = "0x18056D550", Slot = "11")]
get
{
return null;
}
}
/// <summary>Begins an asynchronous request for a file system resource.</summary>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate.</param>
/// <param name="state">An object that contains state information for this request.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous request.</returns>
/// <exception cref="T:System.InvalidOperationException">The stream is already in use by a previous call to <see cref="M:System.Net.FileWebRequest.BeginGetResponse(System.AsyncCallback,System.Object)" />.</exception>
/// <exception cref="T:System.Net.WebException">The <see cref="T:System.Net.FileWebRequest" /> was aborted.</exception>
// Token: 0x06000F57 RID: 3927 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F57")]
[Address(RVA = "0xB297C0", Offset = "0xB287C0", VA = "0x180B297C0", Slot = "23")]
public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
{
return null;
}
/// <summary>Ends an asynchronous request for a file system resource.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that references the pending request for a response.</param>
/// <returns>A <see cref="T:System.Net.WebResponse" /> that contains the response from the file system resource.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
// Token: 0x06000F58 RID: 3928 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F58")]
[Address(RVA = "0xB299D0", Offset = "0xB289D0", VA = "0x180B299D0", Slot = "24")]
public override WebResponse EndGetResponse(IAsyncResult asyncResult)
{
return null;
}
/// <summary>Returns a response to a file system request.</summary>
/// <returns>A <see cref="T:System.Net.WebResponse" /> that contains the response from the file system resource.</returns>
/// <exception cref="T:System.Net.WebException">The request timed out.</exception>
// Token: 0x06000F59 RID: 3929 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F59")]
[Address(RVA = "0xB2A260", Offset = "0xB29260", VA = "0x180B2A260", Slot = "22")]
public override WebResponse GetResponse()
{
return null;
}
// Token: 0x06000F5A RID: 3930 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5A")]
[Address(RVA = "0xB29DA0", Offset = "0xB28DA0", VA = "0x180B29DA0")]
private static void GetRequestStreamCallback(object state)
{
}
// Token: 0x06000F5B RID: 3931 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5B")]
[Address(RVA = "0xB29FD0", Offset = "0xB28FD0", VA = "0x180B29FD0")]
private static void GetResponseCallback(object state)
{
}
// Token: 0x06000F5C RID: 3932 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5C")]
[Address(RVA = "0xB2A440", Offset = "0xB29440", VA = "0x180B2A440")]
internal void UnblockReader()
{
}
/// <summary>Cancels a request to an Internet resource.</summary>
// Token: 0x06000F5D RID: 3933 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5D")]
[Address(RVA = "0xB29590", Offset = "0xB28590", VA = "0x180B29590", Slot = "25")]
public override void Abort()
{
}
// Token: 0x0400090A RID: 2314
[Token(Token = "0x400090A")]
private static WaitCallback s_GetRequestStreamCallback;
// Token: 0x0400090B RID: 2315
[Token(Token = "0x400090B")]
private static WaitCallback s_GetResponseCallback;
// Token: 0x0400090C RID: 2316
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400090C")]
private string m_connectionGroupName;
// Token: 0x0400090D RID: 2317
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400090D")]
private long m_contentLength;
// Token: 0x0400090E RID: 2318
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400090E")]
private ICredentials m_credentials;
// Token: 0x0400090F RID: 2319
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400090F")]
private FileAccess m_fileAccess;
// Token: 0x04000910 RID: 2320
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000910")]
private WebHeaderCollection m_headers;
// Token: 0x04000911 RID: 2321
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000911")]
private string m_method;
// Token: 0x04000912 RID: 2322
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000912")]
private IWebProxy m_proxy;
// Token: 0x04000913 RID: 2323
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000913")]
private ManualResetEvent m_readerEvent;
// Token: 0x04000914 RID: 2324
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x4000914")]
private bool m_readPending;
// Token: 0x04000915 RID: 2325
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4000915")]
private WebResponse m_response;
// Token: 0x04000916 RID: 2326
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x4000916")]
private Stream m_stream;
// Token: 0x04000917 RID: 2327
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x4000917")]
private bool m_syncHint;
// Token: 0x04000918 RID: 2328
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x4000918")]
private int m_timeout;
// Token: 0x04000919 RID: 2329
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x4000919")]
private Uri m_uri;
// Token: 0x0400091A RID: 2330
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x400091A")]
private bool m_writePending;
// Token: 0x0400091B RID: 2331
[FieldOffset(Offset = "0xA1")]
[Token(Token = "0x400091B")]
private bool m_writing;
// Token: 0x0400091C RID: 2332
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x400091C")]
private LazyAsyncResult m_WriteAResult;
// Token: 0x0400091D RID: 2333
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x400091D")]
private LazyAsyncResult m_ReadAResult;
// Token: 0x0400091E RID: 2334
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x400091E")]
private int m_Aborted;
}
}