145 lines
6.4 KiB
C#
145 lines
6.4 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides a file system implementation of the <see cref="T:System.Net.WebResponse" /> class.</summary>
|
|
// Token: 0x02000266 RID: 614
|
|
[Token(Token = "0x2000266")]
|
|
[Serializable]
|
|
public class FileWebResponse : WebResponse, ISerializable, ICloseEx
|
|
{
|
|
// Token: 0x06000F6C RID: 3948 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F6C")]
|
|
[Address(RVA = "0xB2B050", Offset = "0xB2A050", VA = "0x180B2B050")]
|
|
internal FileWebResponse(FileWebRequest request, Uri uri, FileAccess access, bool asyncHint)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.FileWebResponse" /> 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" /> instance that contains the information required to serialize the new <see cref="T:System.Net.FileWebResponse" /> instance.</param>
|
|
/// <param name="streamingContext">An instance of the <see cref="T:System.Runtime.Serialization.StreamingContext" /> class that contains the source of the serialized stream associated with the new <see cref="T:System.Net.FileWebResponse" /> instance.</param>
|
|
// Token: 0x06000F6D RID: 3949 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F6D")]
|
|
[Address(RVA = "0xB2AEA0", Offset = "0xB29EA0", VA = "0x180B2AEA0")]
|
|
[Obsolete]
|
|
protected FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance with the data needed to serialize the <see cref="T:System.Net.FileWebResponse" />.</summary>
|
|
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> , which will hold the serialized data for the <see cref="T:System.Net.FileWebResponse" />.</param>
|
|
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> containing the destination of the serialized stream associated with the new <see cref="T:System.Net.FileWebResponse" />.</param>
|
|
// Token: 0x06000F6E RID: 3950 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F6E")]
|
|
[Address(RVA = "0x779A50", Offset = "0x778A50", VA = "0x180779A50", 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: 0x06000F6F RID: 3951 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F6F")]
|
|
[Address(RVA = "0xB2ABC0", Offset = "0xB29BC0", VA = "0x180B2ABC0", Slot = "8")]
|
|
protected override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a collection of header name/value pairs associated with the response.</summary>
|
|
/// <returns>A <see cref="T:System.Net.WebHeaderCollection" /> that contains the header name/value pairs associated with the response.</returns>
|
|
// Token: 0x170002F6 RID: 758
|
|
// (get) Token: 0x06000F70 RID: 3952 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002F6")]
|
|
public override WebHeaderCollection Headers
|
|
{
|
|
[Token(Token = "0x6000F70")]
|
|
[Address(RVA = "0xB2B2A0", Offset = "0xB2A2A0", VA = "0x180B2B2A0", Slot = "13")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the URI of the file system resource that provided the response.</summary>
|
|
/// <returns>A <see cref="T:System.Uri" /> that contains the URI of the file system resource that provided the response.</returns>
|
|
// Token: 0x170002F7 RID: 759
|
|
// (get) Token: 0x06000F71 RID: 3953 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002F7")]
|
|
public override Uri ResponseUri
|
|
{
|
|
[Token(Token = "0x6000F71")]
|
|
[Address(RVA = "0xB2B2C0", Offset = "0xB2A2C0", VA = "0x180B2B2C0", Slot = "12")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000F72 RID: 3954 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F72")]
|
|
[Address(RVA = "0xB2AAF0", Offset = "0xB29AF0", VA = "0x180B2AAF0")]
|
|
private void CheckDisposed()
|
|
{
|
|
}
|
|
|
|
/// <summary>Closes the response stream.</summary>
|
|
// Token: 0x06000F73 RID: 3955 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F73")]
|
|
[Address(RVA = "0xB2AB80", Offset = "0xB29B80", VA = "0x180B2AB80", Slot = "9")]
|
|
public override void Close()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000F74 RID: 3956 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F74")]
|
|
[Address(RVA = "0xB2AD70", Offset = "0xB29D70", VA = "0x180B2AD70", Slot = "14")]
|
|
void ICloseEx.CloseEx(CloseExState closeState)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the data stream from the file system resource.</summary>
|
|
/// <returns>A <see cref="T:System.IO.Stream" /> for reading data from the file system resource.</returns>
|
|
// Token: 0x06000F75 RID: 3957 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000F75")]
|
|
[Address(RVA = "0xB2AD00", Offset = "0xB29D00", VA = "0x180B2AD00", Slot = "11")]
|
|
public override Stream GetResponseStream()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000920 RID: 2336
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000920")]
|
|
private bool m_closed;
|
|
|
|
// Token: 0x04000921 RID: 2337
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000921")]
|
|
private long m_contentLength;
|
|
|
|
// Token: 0x04000922 RID: 2338
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000922")]
|
|
private FileAccess m_fileAccess;
|
|
|
|
// Token: 0x04000923 RID: 2339
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000923")]
|
|
private WebHeaderCollection m_headers;
|
|
|
|
// Token: 0x04000924 RID: 2340
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000924")]
|
|
private Stream m_stream;
|
|
|
|
// Token: 0x04000925 RID: 2341
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000925")]
|
|
private Uri m_uri;
|
|
}
|
|
}
|