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
WebProxy.cs
Go to the documentation of this file.
1using System;
10
11namespace System.Net
12{
13 // Token: 0x02000220 RID: 544
16 {
17 // Token: 0x06000D9D RID: 3485 RVA: 0x0002BC00 File Offset: 0x00029E00
18 public WebProxy()
19 {
20 }
21
22 // Token: 0x06000D9E RID: 3486 RVA: 0x0002BC10 File Offset: 0x00029E10
23 public WebProxy(global::System.Uri Address)
24 {
25 }
26
27 // Token: 0x06000D9F RID: 3487 RVA: 0x0002BC20 File Offset: 0x00029E20
28 public WebProxy(global::System.Uri Address, bool BypassOnLocal)
29 {
30 }
31
32 // Token: 0x06000DA0 RID: 3488 RVA: 0x0002BC30 File Offset: 0x00029E30
33 public WebProxy(global::System.Uri Address, bool BypassOnLocal, string[] BypassList)
34 {
35 }
36
37 // Token: 0x06000DA1 RID: 3489 RVA: 0x0002BC40 File Offset: 0x00029E40
38 public WebProxy(global::System.Uri Address, bool BypassOnLocal, string[] BypassList, ICredentials Credentials)
39 {
41 if (BypassList != null)
42 {
44 this.UpdateRegExList(true);
45 }
48 }
49
50 // Token: 0x06000DA2 RID: 3490 RVA: 0x0002BC7C File Offset: 0x00029E7C
51 public WebProxy(string Host, int Port)
52 {
53 if (!true)
54 {
55 }
57 string text2;
58 string text = "http://" + Host + ":" + text2;
59 }
60
61 // Token: 0x06000DA3 RID: 3491 RVA: 0x0002BCA8 File Offset: 0x00029EA8
62 public WebProxy(string Address)
63 {
64 global::System.Uri uri = WebProxy.CreateProxyUri(Address);
65 }
66
67 // Token: 0x06000DA4 RID: 3492 RVA: 0x0002BCBC File Offset: 0x00029EBC
68 public WebProxy(string Address, bool BypassOnLocal)
69 {
70 global::System.Uri uri = WebProxy.CreateProxyUri(Address);
71 }
72
73 // Token: 0x06000DA5 RID: 3493 RVA: 0x0002BCD0 File Offset: 0x00029ED0
74 public WebProxy(string Address, bool BypassOnLocal, string[] BypassList)
75 {
76 global::System.Uri uri = WebProxy.CreateProxyUri(Address);
77 }
78
79 // Token: 0x06000DA6 RID: 3494 RVA: 0x0002BCE4 File Offset: 0x00029EE4
80 public WebProxy(string Address, bool BypassOnLocal, string[] BypassList, ICredentials Credentials)
81 {
82 global::System.Uri uri = WebProxy.CreateProxyUri(Address);
83 }
84
85 // Token: 0x170002DB RID: 731
86 // (get) Token: 0x06000DA7 RID: 3495 RVA: 0x0002BCF8 File Offset: 0x00029EF8
87 // (set) Token: 0x06000DA8 RID: 3496 RVA: 0x0002BD0C File Offset: 0x00029F0C
88 public global::System.Uri Address
89 {
90 get
91 {
92 return this._ProxyAddress;
93 }
94 set
95 {
97 if (scriptEngine != null)
98 {
100 }
102 }
103 }
104
105 // Token: 0x170002DC RID: 732
106 // (set) Token: 0x06000DA9 RID: 3497 RVA: 0x0002BD30 File Offset: 0x00029F30
107 internal bool AutoDetect
108 {
109 set
110 {
111 if (this.m_ScriptEngine == null)
112 {
113 }
114 }
115 }
116
117 // Token: 0x170002DD RID: 733
118 // (set) Token: 0x06000DAA RID: 3498 RVA: 0x0002BD48 File Offset: 0x00029F48
119 internal global::System.Uri ScriptLocation
120 {
121 set
122 {
123 if (this.m_ScriptEngine == null)
124 {
125 }
126 }
127 }
128
129 // Token: 0x170002DE RID: 734
130 // (get) Token: 0x06000DAB RID: 3499 RVA: 0x0002BD60 File Offset: 0x00029F60
131 // (set) Token: 0x06000DAC RID: 3500 RVA: 0x0002BD74 File Offset: 0x00029F74
133 {
134 get
135 {
136 return this._BypassOnLocal;
137 }
138 set
139 {
141 if (scriptEngine != null)
142 {
144 }
145 }
146 }
147
148 // Token: 0x170002DF RID: 735
149 // (get) Token: 0x06000DAD RID: 3501 RVA: 0x0002BD94 File Offset: 0x00029F94
150 // (set) Token: 0x06000DAE RID: 3502 RVA: 0x0002BDB0 File Offset: 0x00029FB0
151 public string[] BypassList
152 {
153 get
154 {
155 if (this._BypassList == null)
156 {
157 }
158 throw new InvalidCastException();
159 }
160 set
161 {
163 if (scriptEngine != null)
164 {
166 }
167 this.UpdateRegExList(true);
168 }
169 }
170
171 // Token: 0x170002E0 RID: 736
172 // (get) Token: 0x06000DAF RID: 3503 RVA: 0x0002BDD4 File Offset: 0x00029FD4
173 // (set) Token: 0x06000DB0 RID: 3504 RVA: 0x0002BDE8 File Offset: 0x00029FE8
175 {
176 get
177 {
178 return this._Credentials;
179 }
180 set
181 {
183 }
184 }
185
186 // Token: 0x170002E1 RID: 737
187 // (get) Token: 0x06000DB1 RID: 3505 RVA: 0x0002BDFC File Offset: 0x00029FFC
188 // (set) Token: 0x06000DB2 RID: 3506 RVA: 0x0002BE14 File Offset: 0x0002A014
190 {
191 get
192 {
193 if (this._Credentials != null)
194 {
195 return;
196 }
197 }
198 set
199 {
200 if (!true)
201 {
202 }
203 }
204 }
205
206 // Token: 0x170002E2 RID: 738
207 // (get) Token: 0x06000DB3 RID: 3507 RVA: 0x0002BE2C File Offset: 0x0002A02C
209 {
210 get
211 {
212 /*
213An exception occurred when decompiling this method (06000DB3)
214
215ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ArrayList System.Net.WebProxy::get_BypassArrayList()
216
217 ---> System.Exception: Basic block has to end with unconditional control flow.
218{
219 IL_0000:
220 brtrue(IL_0000, ldfld:ArrayList[exp:bool](WebProxy::_BypassList, ldloc:WebProxy(this)))
221}
222
223 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
224 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
225 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
226 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
227 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
228 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
229 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
230 --- End of inner exception stack trace ---
231 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
232 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
233*/;
234 }
235 }
236
237 // Token: 0x06000DB4 RID: 3508 RVA: 0x0002BE40 File Offset: 0x0002A040
238 internal void CheckForChanges()
239 {
241 if (scriptEngine != null)
242 {
244 return;
245 }
246 }
247
248 // Token: 0x06000DB5 RID: 3509 RVA: 0x0002BE60 File Offset: 0x0002A060
249 public global::System.Uri GetProxy(global::System.Uri destination)
250 {
251 if (!true)
252 {
253 }
254 bool flag = this.IsBypassedManual(destination);
255 Hashtable proxyHostAddresses = this._ProxyHostAddresses;
256 if (proxyHostAddresses != null)
257 {
258 string scheme = destination.Scheme;
259 if (proxyHostAddresses != null)
260 {
261 }
262 }
263 global::System.Uri proxyAddress = this._ProxyAddress;
264 return destination;
265 }
266
267 // Token: 0x06000DB6 RID: 3510 RVA: 0x0002BE98 File Offset: 0x0002A098
268 private static global::System.Uri CreateProxyUri(string address)
269 {
270 /*
271An exception occurred when decompiling this method (06000DB6)
272
273ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Uri System.Net.WebProxy::CreateProxyUri(System.String)
274
275 ---> System.Exception: Basic block has to end with unconditional control flow.
276{
277 Block_0:
278 stloc:string(var_1_0F, call:string(string::Concat, ldstr:string("http://"), ldstr:string("://")))
279}
280
281 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
282 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
283 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
284 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
285 --- End of inner exception stack trace ---
286 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
287 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
288*/;
289 }
290
291 // Token: 0x06000DB7 RID: 3511 RVA: 0x0002BEB8 File Offset: 0x0002A0B8
292 private void UpdateRegExList(bool canThrow)
293 {
294 ArrayList bypassList = this._BypassList;
295 if (bypassList != null)
296 {
297 if (bypassList != null)
298 {
299 }
300 return;
301 }
302 long num = 0L;
304 }
305
306 // Token: 0x06000DB8 RID: 3512 RVA: 0x0002BEFC File Offset: 0x0002A0FC
307 private bool IsMatchInBypassList(global::System.Uri input)
308 {
309 long num = 0L;
310 this.UpdateRegExList(num != 0L);
311 if (this._RegExBypassList != null)
312 {
313 string scheme = input.Scheme;
314 string host = input.Host;
315 return input.IsDefaultPort;
316 }
317 }
318
319 // Token: 0x06000DB9 RID: 3513 RVA: 0x0002BF80 File Offset: 0x0002A180
320 private bool IsLocal(global::System.Uri host)
321 {
322 string host2 = host.Host;
323 bool flag;
324 return flag;
325 }
326
327 // Token: 0x06000DBA RID: 3514 RVA: 0x0002BFCC File Offset: 0x0002A1CC
328 private bool IsLocalInProxyHash(global::System.Uri host)
329 {
330 Hashtable proxyHostAddresses = this._ProxyHostAddresses;
331 if (proxyHostAddresses != null)
332 {
333 string scheme = host.Scheme;
334 if (proxyHostAddresses != null || proxyHostAddresses != null)
335 {
336 }
337 }
338 throw new InvalidCastException();
339 }
340
341 // Token: 0x06000DBB RID: 3515 RVA: 0x0002BFF8 File Offset: 0x0002A1F8
342 public bool IsBypassed(global::System.Uri host)
343 {
344 if (!true)
345 {
346 }
347 long num = 0L;
348 return this.IsBypassedAuto(host, num != 0L);
349 }
350
351 // Token: 0x06000DBC RID: 3516 RVA: 0x0002C01C File Offset: 0x0002A21C
352 private bool IsBypassedManual(global::System.Uri host)
353 {
354 bool isLoopback = host.IsLoopback;
355 global::System.Uri proxyAddress = this._ProxyAddress;
356 if (this._ProxyHostAddresses == null || this._BypassOnLocal)
357 {
358 }
359 return true;
360 }
361
362 // Token: 0x06000DBD RID: 3517 RVA: 0x00002050 File Offset: 0x00000250
363 [Obsolete("This method has been deprecated. Please use the proxy selected for you by default. http://go.microsoft.com/fwlink/?linkid=14202")]
364 public static WebProxy GetDefaultProxy()
365 {
366 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
367 }
368
369 // Token: 0x06000DBE RID: 3518 RVA: 0x0002C050 File Offset: 0x0002A250
371 {
372 bool boolean = serializationInfo.GetBoolean("_UseRegistry");
373 int num = 1;
374 this._UseRegistry = num != 0;
375 }
376
377 // Token: 0x06000DBF RID: 3519 RVA: 0x0002C0E0 File Offset: 0x0002A2E0
381
382 // Token: 0x06000DC0 RID: 3520 RVA: 0x0002C0F0 File Offset: 0x0002A2F0
384 {
385 bool bypassOnLocal = this._BypassOnLocal;
386 serializationInfo.AddValue("_BypassOnLocal", bypassOnLocal);
387 global::System.Uri proxyAddress = this._ProxyAddress;
388 serializationInfo.AddValue("_ProxyAddress", proxyAddress);
389 ArrayList bypassList = this._BypassList;
390 serializationInfo.AddValue("_BypassList", bypassList);
392 if (this._UseRegistry)
393 {
394 serializationInfo.AddValue("_UseRegistry", true);
395 return;
396 }
397 }
398
399 // Token: 0x170002E3 RID: 739
400 // (get) Token: 0x06000DC1 RID: 3521 RVA: 0x0002C154 File Offset: 0x0002A354
401 // (set) Token: 0x06000DC2 RID: 3522 RVA: 0x0002C168 File Offset: 0x0002A368
403 {
404 get
405 {
406 return this.m_ScriptEngine;
407 }
408 set
409 {
411 }
412 }
413
414 // Token: 0x06000DC3 RID: 3523 RVA: 0x00002050 File Offset: 0x00000250
416 {
417 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
418 }
419
420 // Token: 0x06000DC4 RID: 3524 RVA: 0x0002C17C File Offset: 0x0002A37C
422 {
423 this._UseRegistry = true;
424 }
425
426 // Token: 0x06000DC5 RID: 3525 RVA: 0x0002C198 File Offset: 0x0002A398
427 internal void DeleteScriptEngine()
428 {
430 if (scriptEngine != null)
431 {
433 }
434 }
435
436 // Token: 0x06000DC6 RID: 3526 RVA: 0x0002C1B8 File Offset: 0x0002A3B8
438 {
439 this._UseRegistry = true;
440 }
441
442 // Token: 0x06000DC7 RID: 3527 RVA: 0x0002C1CC File Offset: 0x0002A3CC
444 {
445 bool bypassOnLocal = webProxyData.bypassOnLocal;
447 this._BypassOnLocal = bypassOnLocal;
448 global::System.Uri proxyAddress = webProxyData.proxyAddress;
449 this._ProxyAddress = proxyAddress;
450 Hashtable proxyHostAddresses = webProxyData.proxyHostAddresses;
451 this._ProxyHostAddresses = proxyHostAddresses;
452 ArrayList bypassList = webProxyData.bypassList;
454 this._BypassList = bypassList;
455 if (enableAutoproxy)
456 {
457 bool automaticallyDetectSettings = webProxyData.automaticallyDetectSettings;
458 global::System.Uri scriptLocation = webProxyData.scriptLocation;
459 return;
460 }
461 long num = 0L;
462 long num2 = 0L;
463 long num3 = 0L;
464 scriptEngine.<AutomaticallyDetectSettings>k__BackingField = num != 0L;
465 scriptEngine.<AutomaticConfigurationScript>k__BackingField = num2;
466 if (scriptEngine != null)
467 {
468 Monitor.Exit(this);
469 }
470 if (num3 == 0L)
471 {
472 return;
473 }
474 throw new OutOfMemoryException();
475 }
476
477 // Token: 0x06000DC8 RID: 3528 RVA: 0x0002C288 File Offset: 0x0002A488
479 {
480 /*
481An exception occurred when decompiling this method (06000DC8)
482
483ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.ProxyChain System.Net.WebProxy::System.Net.IAutoWebProxy.GetProxies(System.Uri)
484
485 ---> System.Exception: Basic block has to end with unconditional control flow.
486{
487 IL_0000:
488 brtrue(IL_0000, ldc.i4:bool(1))
489}
490
491 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
492 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
493 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
494 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
495 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
496 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
497 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
498 --- End of inner exception stack trace ---
499 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
500 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
501*/;
502 }
503
504 // Token: 0x06000DC9 RID: 3529 RVA: 0x0002C298 File Offset: 0x0002A498
505 private bool GetProxyAuto(global::System.Uri destination, [Out] global::System.Uri proxyUri)
506 {
507 while (this.m_ScriptEngine == null)
508 {
509 }
510 long value = 0.m_value;
511 bool flag;
512 return flag;
513 }
514
515 // Token: 0x06000DCA RID: 3530 RVA: 0x0002C2B8 File Offset: 0x0002A4B8
516 private bool IsBypassedAuto(global::System.Uri destination, [Out] bool isBypassed)
517 {
518 /*
519An exception occurred when decompiling this method (06000DCA)
520
521ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.WebProxy::IsBypassedAuto(System.Uri,System.Boolean)
522
523 ---> System.Exception: Basic block has to end with unconditional control flow.
524{
525 IL_0015:
526 stloc:int64(var_4_16, ldc.i4:int64(0))
527 stfld:bool(bool::m_value, ldloc:bool[exp:bool&](isBypassed), ldloc:int64[exp:bool](var_4_16))
528}
529
530 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
531 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
532 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
533 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
534 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
535 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
536 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
537 --- End of inner exception stack trace ---
538 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
539 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
540*/;
541 }
542
543 // Token: 0x06000DCB RID: 3531 RVA: 0x0002C2E8 File Offset: 0x0002A4E8
544 internal global::System.Uri[] GetProxiesAuto(global::System.Uri destination, int syncStatus)
545 {
546 long num;
547 if (this.m_ScriptEngine != null)
548 {
549 num = 0L;
550 }
551 long num2 = 0L;
552 long value = num.m_value;
553 if (num2 != 0L)
554 {
555 }
556 global::System.Uri uri;
557 if (uri == null || uri != null)
558 {
559 return uri;
560 }
561 throw new ArrayTypeMismatchException();
562 }
563
564 // Token: 0x06000DCC RID: 3532 RVA: 0x0002C324 File Offset: 0x0002A524
565 internal void AbortGetProxiesAuto(int syncStatus)
566 {
568 if (scriptEngine != null)
569 {
570 scriptEngine.Abort(syncStatus);
571 return;
572 }
573 }
574
575 // Token: 0x06000DCD RID: 3533 RVA: 0x0002C344 File Offset: 0x0002A544
576 internal global::System.Uri GetProxyAutoFailover(global::System.Uri destination)
577 {
578 Hashtable proxyHostAddresses;
579 do
580 {
581 bool flag = this.IsBypassedManual(destination);
582 proxyHostAddresses = this._ProxyHostAddresses;
583 if (proxyHostAddresses == null)
584 {
585 break;
586 }
587 string scheme = destination.Scheme;
588 }
589 while (proxyHostAddresses == null);
590 return this._ProxyAddress;
591 }
592
593 // Token: 0x06000DCE RID: 3534 RVA: 0x0002C378 File Offset: 0x0002A578
595 {
596 bool flag;
597 return flag;
598 }
599
600 // Token: 0x06000DCF RID: 3535 RVA: 0x0002C3A0 File Offset: 0x0002A5A0
601 private static global::System.Uri ProxyUri(string proxyName)
602 {
603 if (true)
604 {
605 string text = "http://" + proxyName;
606 return;
607 }
608 }
609
610 // Token: 0x04000B75 RID: 2933
611 private bool _UseRegistry;
612
613 // Token: 0x04000B76 RID: 2934
614 private bool _BypassOnLocal;
615
616 // Token: 0x04000B77 RID: 2935
617 private bool m_EnableAutoproxy;
618
619 // Token: 0x04000B78 RID: 2936
620 private global::System.Uri _ProxyAddress;
621
622 // Token: 0x04000B79 RID: 2937
624
625 // Token: 0x04000B7A RID: 2938
627
628 // Token: 0x04000B7B RID: 2939
629 private global::System.Text.RegularExpressions.Regex[] _RegExBypassList;
630
631 // Token: 0x04000B7C RID: 2940
633
634 // Token: 0x04000B7D RID: 2941
636 }
637}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
ICredentials _Credentials
Definition WebProxy.cs:626
bool IsMatchInBypassList(global::System.Uri input)
Definition WebProxy.cs:307
void UnsafeUpdateFromRegistry()
Definition WebProxy.cs:437
WebProxy(global::System.Uri Address, bool BypassOnLocal, string[] BypassList)
Definition WebProxy.cs:33
ICredentials Credentials
Definition WebProxy.cs:175
bool IsBypassed(global::System.Uri host)
Definition WebProxy.cs:342
global::System.Uri Address
Definition WebProxy.cs:89
bool IsLocal(global::System.Uri host)
Definition WebProxy.cs:320
WebProxy(bool enableAutoproxy)
Definition WebProxy.cs:421
void DeleteScriptEngine()
Definition WebProxy.cs:427
static bool AreAllBypassed(IEnumerable< string > proxies, bool checkFirstOnly)
Definition WebProxy.cs:594
virtual void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
Definition WebProxy.cs:383
WebProxy(string Address, bool BypassOnLocal, string[] BypassList, ICredentials Credentials)
Definition WebProxy.cs:80
WebProxy(string Address)
Definition WebProxy.cs:62
static global::System.Uri ProxyUri(string proxyName)
Definition WebProxy.cs:601
string[] BypassList
Definition WebProxy.cs:152
global::System.Uri GetProxy(global::System.Uri destination)
Definition WebProxy.cs:249
ArrayList BypassArrayList
Definition WebProxy.cs:209
global::System.Text.RegularExpressions.Regex[] _RegExBypassList
Definition WebProxy.cs:629
global::System.Uri _ProxyAddress
Definition WebProxy.cs:620
WebProxy(global::System.Uri Address, bool BypassOnLocal)
Definition WebProxy.cs:28
void Update(WebProxyData webProxyData)
Definition WebProxy.cs:443
WebProxy(string Host, int Port)
Definition WebProxy.cs:51
ArrayList _BypassList
Definition WebProxy.cs:623
global::System.Uri GetProxyAutoFailover(global::System.Uri destination)
Definition WebProxy.cs:576
WebProxy(string Address, bool BypassOnLocal)
Definition WebProxy.cs:68
bool IsLocalInProxyHash(global::System.Uri host)
Definition WebProxy.cs:328
global::System.Uri[] GetProxiesAuto(global::System.Uri destination, int syncStatus)
Definition WebProxy.cs:544
AutoWebProxyScriptEngine ScriptEngine
Definition WebProxy.cs:403
Hashtable _ProxyHostAddresses
Definition WebProxy.cs:632
WebProxy(global::System.Uri Address, bool BypassOnLocal, string[] BypassList, ICredentials Credentials)
Definition WebProxy.cs:38
static IWebProxy CreateDefaultProxy()
Definition WebProxy.cs:415
bool IsBypassedManual(global::System.Uri host)
Definition WebProxy.cs:352
static WebProxy GetDefaultProxy()
Definition WebProxy.cs:364
AutoWebProxyScriptEngine m_ScriptEngine
Definition WebProxy.cs:635
WebProxy(string Address, bool BypassOnLocal, string[] BypassList)
Definition WebProxy.cs:74
global::System.Uri ScriptLocation
Definition WebProxy.cs:120
WebProxy(global::System.Uri Address)
Definition WebProxy.cs:23
bool IsBypassedAuto(global::System.Uri destination, [Out] bool isBypassed)
Definition WebProxy.cs:516
void UpdateRegExList(bool canThrow)
Definition WebProxy.cs:292
bool GetProxyAuto(global::System.Uri destination, [Out] global::System.Uri proxyUri)
Definition WebProxy.cs:505
WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext)
Definition WebProxy.cs:370
static global::System.Uri CreateProxyUri(string address)
Definition WebProxy.cs:268
void AbortGetProxiesAuto(int syncStatus)
Definition WebProxy.cs:565
void AddValue(string name, object value, Type type)
static void Exit(object obj)
Definition Monitor.cs:47
Uri(string uriString)
Definition Uri.cs:279
ProxyChain GetProxies(global::System.Uri destination)
void GetObjectData(SerializationInfo info, StreamingContext context)