terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
XmlDownloadManager.cs
Go to the documentation of this file.
1using System;
4using System.IO;
5using System.Net;
11
12namespace System.Xml
13{
14 // Token: 0x02000096 RID: 150
15 internal class XmlDownloadManager
16 {
17 // Token: 0x06000726 RID: 1830 RVA: 0x00018318 File Offset: 0x00016518
18 internal Stream GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
19 {
20 bool flag = uri.Scheme == "file";
21 string localPath = uri.LocalPath;
22 Stream stream;
23 return stream;
24 }
25
26 // Token: 0x06000727 RID: 1831 RVA: 0x00018340 File Offset: 0x00016540
27 private Stream GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
28 {
29 if (!true)
30 {
31 }
33 if (credentials != null)
34 {
35 }
36 if (proxy != null)
37 {
38 }
39 if (cachePolicy != null)
40 {
41 }
42 if (webRequest != null)
43 {
44 }
45 if (this.connections == null)
46 {
47 }
48 throw new InvalidCastException();
49 }
50
51 // Token: 0x06000728 RID: 1832 RVA: 0x000183B4 File Offset: 0x000165B4
52 internal void Remove(string host)
53 {
55 if (hashtable != null)
56 {
57 Hashtable.bucket[] buckets = hashtable._buckets;
58 hashtable._buckets = buckets;
60 }
61 long num = 0L;
62 Monitor.Exit(this);
63 if (num == 0L)
64 {
65 return;
66 }
67 throw new OutOfMemoryException();
68 }
69
70 // Token: 0x06000729 RID: 1833 RVA: 0x00018418 File Offset: 0x00016618
71 internal Task<Stream> GetStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
72 {
73 bool flag = uri.Scheme == "file";
75 return task;
76 }
77
78 // Token: 0x0600072A RID: 1834 RVA: 0x00018438 File Offset: 0x00016638
79 private Task<Stream> GetNonFileStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
80 {
81 /*
82An exception occurred when decompiling this method (0600072A)
83
84ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.IO.Stream> System.Xml.XmlDownloadManager::GetNonFileStreamAsync(System.Uri,System.Net.ICredentials,System.Net.IWebProxy,System.Net.Cache.RequestCachePolicy)
85
86 ---> System.Exception: Basic block has to end with unconditional control flow.
87{
88 IL_0000:
89 brtrue(IL_0000, ldc.i4:bool(1))
90}
91
92 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
93 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
94 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
95 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
96 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
97 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
98 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
99 --- End of inner exception stack trace ---
100 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
101 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
102*/;
103 }
104
105 // Token: 0x0600072B RID: 1835 RVA: 0x00018448 File Offset: 0x00016648
107 {
108 }
109
110 // Token: 0x040003A7 RID: 935
112
113 // Token: 0x02000097 RID: 151
115 private sealed class <>c__DisplayClass4_0
116 {
117 // Token: 0x0600072C RID: 1836 RVA: 0x0001845C File Offset: 0x0001665C
119 {
120 }
121
122 // Token: 0x0600072D RID: 1837 RVA: 0x00018470 File Offset: 0x00016670
124 {
125 /*
126An exception occurred when decompiling this method (0600072D)
127
128ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream System.Xml.XmlDownloadManager/<>c__DisplayClass4_0::<GetStreamAsync>b__0()
129
130 ---> System.Exception: Basic block has to end with unconditional control flow.
131{
132 Block_0:
133 stloc:string(var_0_0B, callgetter:string(Uri::get_LocalPath, ldfld:Uri('<>c__DisplayClass4_0'::uri, ldloc:'<>c__DisplayClass4_0'(this))))
134}
135
136 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
137 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
138 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
139 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
140 --- End of inner exception stack trace ---
141 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
142 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
143*/;
144 }
145
146 // Token: 0x040003A8 RID: 936
147 public Uri uri;
148 }
149
150 // Token: 0x02000098 RID: 152
152 [StructLayout(3)]
154 {
155 // Token: 0x0600072E RID: 1838 RVA: 0x00018488 File Offset: 0x00016688
156 private void MoveNext()
157 {
160 ICredentials credentials = this.credentials;
161 this.<req>5__2 = webRequest;
162 if (credentials != null)
163 {
164 }
165 if (this.proxy != null)
166 {
167 WebRequest webRequest2 = this.<req>5__2;
168 }
169 if (this.cachePolicy != null)
170 {
171 WebRequest webRequest3 = this.<req>5__2;
172 }
173 WebRequest webRequest4 = this.<req>5__2;
174 WebRequest webRequest5 = this.<req>5__2;
175 }
176
177 // Token: 0x0600072F RID: 1839 RVA: 0x00018588 File Offset: 0x00016788
182
183 // Token: 0x040003A9 RID: 937
185
186 // Token: 0x040003AA RID: 938
188
189 // Token: 0x040003AB RID: 939
190 public Uri uri;
191
192 // Token: 0x040003AC RID: 940
194
195 // Token: 0x040003AD RID: 941
197
198 // Token: 0x040003AE RID: 942
200
201 // Token: 0x040003AF RID: 943
203
204 // Token: 0x040003B0 RID: 944
205 private WebRequest <req>5__2;
206
207 // Token: 0x040003B1 RID: 945
209 }
210 }
211}
class f__AnonymousType0<< Count > j__TPar
static WebRequest Create(global::System.Uri requestUri, bool useUriBase)
static void Exit(object obj)
Definition Monitor.cs:47
string LocalPath
Definition Uri.cs:548
Stream GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
Stream GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
Task< Stream > GetNonFileStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
Task< Stream > GetStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
AsyncTaskMethodBuilder< Stream ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable< WebResponse >.ConfiguredTaskAwaiter u__1