Files
Apr2020-Cpp2Il-Dump/System/Net/FileWebRequest.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x02000267 RID: 615
[Token(Token = "0x2000267")]
[Serializable]
public class FileWebRequest : WebRequest, ISerializable
{
// Token: 0x06000F5C RID: 3932 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5C")]
[Address(RVA = "0x2705160", Offset = "0x2703F60", VA = "0x182705160")]
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: 0x06000F5D RID: 3933 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5D")]
[Address(RVA = "0x2704EC0", Offset = "0x2703CC0", VA = "0x182704EC0")]
[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: 0x06000F5E RID: 3934 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5E")]
[Address(RVA = "0x409310", Offset = "0x408110", VA = "0x180409310", 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: 0x06000F5F RID: 3935 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F5F")]
[Address(RVA = "0x2704520", Offset = "0x2703320", VA = "0x182704520", Slot = "7")]
protected override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
// Token: 0x170002F1 RID: 753
// (get) Token: 0x06000F60 RID: 3936 RVA: 0x00007770 File Offset: 0x00005970
[Token(Token = "0x170002F1")]
internal bool Aborted
{
[Token(Token = "0x6000F60")]
[Address(RVA = "0x2705290", Offset = "0x2704090", VA = "0x182705290")]
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: 0x170002F2 RID: 754
// (get) Token: 0x06000F61 RID: 3937 RVA: 0x00007788 File Offset: 0x00005988
// (set) Token: 0x06000F62 RID: 3938 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F2")]
public override long ContentLength
{
[Token(Token = "0x6000F61")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890", Slot = "14")]
get
{
return 0L;
}
[Token(Token = "0x6000F62")]
[Address(RVA = "0x27052A0", Offset = "0x27040A0", VA = "0x1827052A0", 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: 0x170002F3 RID: 755
// (set) Token: 0x06000F63 RID: 3939 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F3")]
public override string ContentType
{
[Token(Token = "0x6000F63")]
[Address(RVA = "0x2705330", Offset = "0x2704130", VA = "0x182705330", 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: 0x170002F4 RID: 756
// (get) Token: 0x06000F64 RID: 3940 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F65 RID: 3941 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F4")]
public override ICredentials Credentials
{
[Token(Token = "0x6000F64")]
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "17")]
get
{
return null;
}
[Token(Token = "0x6000F65")]
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50", 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: 0x170002F5 RID: 757
// (get) Token: 0x06000F66 RID: 3942 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002F5")]
public override WebHeaderCollection Headers
{
[Token(Token = "0x6000F66")]
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40", 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: 0x170002F6 RID: 758
// (get) Token: 0x06000F67 RID: 3943 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F68 RID: 3944 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F6")]
public override string Method
{
[Token(Token = "0x6000F67")]
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", Slot = "9")]
get
{
return null;
}
[Token(Token = "0x6000F68")]
[Address(RVA = "0x2705390", Offset = "0x2704190", VA = "0x182705390", 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: 0x170002F7 RID: 759
// (get) Token: 0x06000F69 RID: 3945 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000F6A RID: 3946 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170002F7")]
public override IWebProxy Proxy
{
[Token(Token = "0x6000F69")]
[Address(RVA = "0x423E10", Offset = "0x422C10", VA = "0x180423E10", Slot = "19")]
get
{
return null;
}
[Token(Token = "0x6000F6A")]
[Address(RVA = "0x687270", Offset = "0x686070", VA = "0x180687270", 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: 0x170002F8 RID: 760
// (get) Token: 0x06000F6B RID: 3947 RVA: 0x000077A0 File Offset: 0x000059A0
[Token(Token = "0x170002F8")]
public override int Timeout
{
[Token(Token = "0x6000F6B")]
[Address(RVA = "0xA338F0", Offset = "0xA326F0", VA = "0x180A338F0", 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: 0x170002F9 RID: 761
// (get) Token: 0x06000F6C RID: 3948 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002F9")]
public override Uri RequestUri
{
[Token(Token = "0x6000F6C")]
[Address(RVA = "0x46AA30", Offset = "0x469830", VA = "0x18046AA30", 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: 0x06000F6D RID: 3949 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F6D")]
[Address(RVA = "0x2704110", Offset = "0x2702F10", VA = "0x182704110", 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: 0x06000F6E RID: 3950 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F6E")]
[Address(RVA = "0x2704320", Offset = "0x2703120", VA = "0x182704320", 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: 0x06000F6F RID: 3951 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000F6F")]
[Address(RVA = "0x2704BB0", Offset = "0x27039B0", VA = "0x182704BB0", Slot = "22")]
public override WebResponse GetResponse()
{
return null;
}
// Token: 0x06000F70 RID: 3952 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F70")]
[Address(RVA = "0x27046F0", Offset = "0x27034F0", VA = "0x1827046F0")]
private static void GetRequestStreamCallback(object state)
{
}
// Token: 0x06000F71 RID: 3953 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F71")]
[Address(RVA = "0x2704920", Offset = "0x2703720", VA = "0x182704920")]
private static void GetResponseCallback(object state)
{
}
// Token: 0x06000F72 RID: 3954 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F72")]
[Address(RVA = "0x2704D90", Offset = "0x2703B90", VA = "0x182704D90")]
internal void UnblockReader()
{
}
/// <summary>Cancels a request to an Internet resource.</summary>
// Token: 0x06000F73 RID: 3955 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000F73")]
[Address(RVA = "0x2703EE0", Offset = "0x2702CE0", VA = "0x182703EE0", Slot = "25")]
public override void Abort()
{
}
// Token: 0x04000917 RID: 2327
[Token(Token = "0x4000917")]
private static WaitCallback s_GetRequestStreamCallback;
// Token: 0x04000918 RID: 2328
[Token(Token = "0x4000918")]
private static WaitCallback s_GetResponseCallback;
// Token: 0x04000919 RID: 2329
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000919")]
private string m_connectionGroupName;
// Token: 0x0400091A RID: 2330
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400091A")]
private long m_contentLength;
// Token: 0x0400091B RID: 2331
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400091B")]
private ICredentials m_credentials;
// Token: 0x0400091C RID: 2332
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400091C")]
private FileAccess m_fileAccess;
// Token: 0x0400091D RID: 2333
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400091D")]
private WebHeaderCollection m_headers;
// Token: 0x0400091E RID: 2334
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400091E")]
private string m_method;
// Token: 0x0400091F RID: 2335
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400091F")]
private IWebProxy m_proxy;
// Token: 0x04000920 RID: 2336
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000920")]
private ManualResetEvent m_readerEvent;
// Token: 0x04000921 RID: 2337
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x4000921")]
private bool m_readPending;
// Token: 0x04000922 RID: 2338
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4000922")]
private WebResponse m_response;
// Token: 0x04000923 RID: 2339
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x4000923")]
private Stream m_stream;
// Token: 0x04000924 RID: 2340
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x4000924")]
private bool m_syncHint;
// Token: 0x04000925 RID: 2341
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x4000925")]
private int m_timeout;
// Token: 0x04000926 RID: 2342
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x4000926")]
private Uri m_uri;
// Token: 0x04000927 RID: 2343
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x4000927")]
private bool m_writePending;
// Token: 0x04000928 RID: 2344
[FieldOffset(Offset = "0xA1")]
[Token(Token = "0x4000928")]
private bool m_writing;
// Token: 0x04000929 RID: 2345
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x4000929")]
private LazyAsyncResult m_WriteAResult;
// Token: 0x0400092A RID: 2346
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x400092A")]
private LazyAsyncResult m_ReadAResult;
// Token: 0x0400092B RID: 2347
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x400092B")]
private int m_Aborted;
}
}