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: 0x0200026A RID: 618
|
|
[Token(Token = "0x200026A")]
|
|
[Serializable]
|
|
public class FileWebResponse : WebResponse, ISerializable, ICloseEx
|
|
{
|
|
// Token: 0x06000F82 RID: 3970 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F82")]
|
|
[Address(RVA = "0x27059A0", Offset = "0x27047A0", VA = "0x1827059A0")]
|
|
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: 0x06000F83 RID: 3971 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F83")]
|
|
[Address(RVA = "0x27057F0", Offset = "0x27045F0", VA = "0x1827057F0")]
|
|
[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: 0x06000F84 RID: 3972 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F84")]
|
|
[Address(RVA = "0x408310", Offset = "0x407110", VA = "0x180408310", 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: 0x06000F85 RID: 3973 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F85")]
|
|
[Address(RVA = "0x2705510", Offset = "0x2704310", VA = "0x182705510", 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: 0x170002FA RID: 762
|
|
// (get) Token: 0x06000F86 RID: 3974 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002FA")]
|
|
public override WebHeaderCollection Headers
|
|
{
|
|
[Token(Token = "0x6000F86")]
|
|
[Address(RVA = "0x2705BF0", Offset = "0x27049F0", VA = "0x182705BF0", 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: 0x170002FB RID: 763
|
|
// (get) Token: 0x06000F87 RID: 3975 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170002FB")]
|
|
public override Uri ResponseUri
|
|
{
|
|
[Token(Token = "0x6000F87")]
|
|
[Address(RVA = "0x2705C10", Offset = "0x2704A10", VA = "0x182705C10", Slot = "12")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000F88 RID: 3976 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F88")]
|
|
[Address(RVA = "0x2705440", Offset = "0x2704240", VA = "0x182705440")]
|
|
private void CheckDisposed()
|
|
{
|
|
}
|
|
|
|
/// <summary>Closes the response stream.</summary>
|
|
// Token: 0x06000F89 RID: 3977 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F89")]
|
|
[Address(RVA = "0x27054D0", Offset = "0x27042D0", VA = "0x1827054D0", Slot = "9")]
|
|
public override void Close()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000F8A RID: 3978 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000F8A")]
|
|
[Address(RVA = "0x27056C0", Offset = "0x27044C0", VA = "0x1827056C0", 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: 0x06000F8B RID: 3979 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000F8B")]
|
|
[Address(RVA = "0x2705650", Offset = "0x2704450", VA = "0x182705650", Slot = "11")]
|
|
public override Stream GetResponseStream()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400092D RID: 2349
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400092D")]
|
|
private bool m_closed;
|
|
|
|
// Token: 0x0400092E RID: 2350
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400092E")]
|
|
private long m_contentLength;
|
|
|
|
// Token: 0x0400092F RID: 2351
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400092F")]
|
|
private FileAccess m_fileAccess;
|
|
|
|
// Token: 0x04000930 RID: 2352
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000930")]
|
|
private WebHeaderCollection m_headers;
|
|
|
|
// Token: 0x04000931 RID: 2353
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000931")]
|
|
private Stream m_stream;
|
|
|
|
// Token: 0x04000932 RID: 2354
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000932")]
|
|
private Uri m_uri;
|
|
}
|
|
}
|