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
HttpWebRequest.cs
Go to the documentation of this file.
1using System;
6using System.IO;
13using System.Text;
16using Cpp2IlInjected;
19
20namespace System.Net
21{
22 // Token: 0x02000255 RID: 597
25 {
26 // Token: 0x06000F89 RID: 3977 RVA: 0x00031458 File Offset: 0x0002F658
28 {
29 }
30
31 // Token: 0x06000F8A RID: 3978 RVA: 0x00031468 File Offset: 0x0002F668
32 public HttpWebRequest(global::System.Uri uri)
33 {
34 this.pipelined = true;
35 this.method = "GET";
36 this.initialMethod = "GET";
37 if ("GET" == null)
38 {
39 }
40 this.version = "GET";
42 if (37856 == 0)
43 {
44 }
45 base..ctor();
46 this.requestUri = uri;
47 this.actualUri = uri;
50 this.<ThrowOnError>k__BackingField = true;
51 this.ResetAuthorization();
52 }
53
54 // Token: 0x06000F8B RID: 3979 RVA: 0x000314E8 File Offset: 0x0002F6E8
55 internal HttpWebRequest(global::System.Uri uri, Mono.Net.Security.MobileTlsProvider tlsProvider, [Optional] MonoTlsSettings settings)
56 {
58 this.tlsSettings = settings;
59 }
60
61 // Token: 0x06000F8C RID: 3980 RVA: 0x00031504 File Offset: 0x0002F704
62 [Obsolete("Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202")]
64 {
65 /*
66An exception occurred when decompiling this method (06000F8C)
67
68ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.HttpWebRequest::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
69
70 ---> System.Exception: Basic block has to end with unconditional control flow.
71{
72 Block_0:
73 stfld:bool(HttpWebRequest::keepAlive, ldloc:HttpWebRequest(this), ldc.i4:bool(1))
74 stfld:int32(HttpWebRequest::maxAutoRedirect, ldloc:HttpWebRequest(this), ldc.i4:int32(50))
75 stfld:string(HttpWebRequest::method, ldloc:HttpWebRequest(this), ldstr:string("GET"))
76 stfld:string(HttpWebRequest::initialMethod, ldloc:HttpWebRequest(this), ldstr:string("GET"))
77 stfld:bool(HttpWebRequest::pipelined, ldloc:HttpWebRequest(this), ldc.i4:bool(1))
78 stfld:Version(HttpWebRequest::version, ldloc:HttpWebRequest(this), ldc.i4:int32[exp:Version](257))
79 stfld:int32(HttpWebRequest::readWriteTimeout, ldloc:HttpWebRequest(this), ldc.i4:int32(37856))
80 call:void(WebRequest::.ctor, ldloc:HttpWebRequest[exp:WebRequest](this))
81}
82
83 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
84 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
85 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
86 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
87 --- End of inner exception stack trace ---
88 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
89 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
90*/;
91 }
92
93 // Token: 0x06000F8D RID: 3981 RVA: 0x00031558 File Offset: 0x0002F758
94 private void ResetAuthorization()
95 {
96 }
97
98 // Token: 0x06000F8E RID: 3982 RVA: 0x0003156C File Offset: 0x0002F76C
99 private void SetSpecialHeaders(string HeaderName, string value)
100 {
101 if (!true)
102 {
103 }
105 this.webHeaders.RemoveInternal(HeaderName);
106 if (text._stringLength != 0)
107 {
108 this.webHeaders.AddInternal(HeaderName, text);
109 return;
110 }
111 }
112
113 // Token: 0x1700035B RID: 859
114 // (get) Token: 0x06000F8F RID: 3983 RVA: 0x000315A8 File Offset: 0x0002F7A8
115 // (set) Token: 0x06000F90 RID: 3984 RVA: 0x000315C8 File Offset: 0x0002F7C8
116 public string Accept
117 {
118 get
119 {
120 return this.webHeaders["Accept"];
121 }
122 set
123 {
124 this.CheckRequestStarted();
125 this.SetSpecialHeaders("Accept", value);
126 }
127 }
128
129 // Token: 0x1700035C RID: 860
130 // (get) Token: 0x06000F91 RID: 3985 RVA: 0x000315E8 File Offset: 0x0002F7E8
131 // (set) Token: 0x06000F92 RID: 3986 RVA: 0x000315FC File Offset: 0x0002F7FC
132 public global::System.Uri Address
133 {
134 get
135 {
136 return this.actualUri;
137 }
138 internal set
139 {
141 }
142 }
143
144 // Token: 0x1700035D RID: 861
145 // (get) Token: 0x06000F93 RID: 3987 RVA: 0x00031610 File Offset: 0x0002F810
146 // (set) Token: 0x06000F94 RID: 3988 RVA: 0x00031624 File Offset: 0x0002F824
147 public virtual bool AllowAutoRedirect
148 {
149 get
150 {
151 return this.allowAutoRedirect;
152 }
153 set
154 {
155 }
156 }
157
158 // Token: 0x1700035E RID: 862
159 // (get) Token: 0x06000F95 RID: 3989 RVA: 0x00031634 File Offset: 0x0002F834
160 // (set) Token: 0x06000F96 RID: 3990 RVA: 0x00031648 File Offset: 0x0002F848
161 public virtual bool AllowWriteStreamBuffering
162 {
163 get
164 {
165 return this.allowBuffering;
166 }
167 set
168 {
169 }
170 }
171
172 // Token: 0x1700035F RID: 863
173 // (get) Token: 0x06000F97 RID: 3991 RVA: 0x00031658 File Offset: 0x0002F858
174 // (set) Token: 0x06000F98 RID: 3992 RVA: 0x0003166C File Offset: 0x0002F86C
175 public virtual bool AllowReadStreamBuffering
176 {
177 get
178 {
179 return this.allowReadStreamBuffering;
180 }
181 set
182 {
183 }
184 }
185
186 // Token: 0x06000F99 RID: 3993 RVA: 0x00002050 File Offset: 0x00000250
188 {
189 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
190 }
191
192 // Token: 0x17000360 RID: 864
193 // (get) Token: 0x06000F9A RID: 3994 RVA: 0x0003167C File Offset: 0x0002F87C
194 // (set) Token: 0x06000F9B RID: 3995 RVA: 0x00031690 File Offset: 0x0002F890
196 {
197 get
198 {
199 return this.auto_decomp;
200 }
201 set
202 {
203 this.CheckRequestStarted();
205 }
206 }
207
208 // Token: 0x17000361 RID: 865
209 // (get) Token: 0x06000F9C RID: 3996 RVA: 0x000316AC File Offset: 0x0002F8AC
211 {
212 get
213 {
214 if (this.allowBuffering)
215 {
216 return this.MethodWithBuffer;
217 }
218 }
219 }
220
221 // Token: 0x17000362 RID: 866
222 // (get) Token: 0x06000F9D RID: 3997 RVA: 0x000316CC File Offset: 0x0002F8CC
223 private bool MethodWithBuffer
224 {
225 get
226 {
227 bool flag = this.method != "HEAD";
228 bool flag2 = this.method != "GET";
229 bool flag3 = this.method != "MKCOL";
230 bool flag4 = this.method != "CONNECT";
231 return this.method != "TRACE";
232 }
233 }
234
235 // Token: 0x17000363 RID: 867
236 // (get) Token: 0x06000F9E RID: 3998 RVA: 0x00031730 File Offset: 0x0002F930
238 {
239 get
240 {
241 return this.tlsProvider;
242 }
243 }
244
245 // Token: 0x17000364 RID: 868
246 // (get) Token: 0x06000F9F RID: 3999 RVA: 0x00031744 File Offset: 0x0002F944
248 {
249 get
250 {
251 return this.tlsSettings;
252 }
253 }
254
255 // Token: 0x17000365 RID: 869
256 // (get) Token: 0x06000FA0 RID: 4000 RVA: 0x00031758 File Offset: 0x0002F958
257 // (set) Token: 0x06000FA1 RID: 4001 RVA: 0x0003176C File Offset: 0x0002F96C
258 public global::System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates
259 {
260 get
261 {
262 /*
263An exception occurred when decompiling this method (06000FA0)
264
265ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Cryptography.X509Certificates.X509CertificateCollection System.Net.HttpWebRequest::get_ClientCertificates()
266
267 ---> System.Exception: Basic block has to end with unconditional control flow.
268{
269 IL_0000:
270 brtrue(IL_0000, ldfld:X509CertificateCollection[exp:bool](HttpWebRequest::certificates, ldloc:HttpWebRequest(this)))
271}
272
273 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
274 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
275 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
276 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
277 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
278 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
279 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
280 --- End of inner exception stack trace ---
281 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
282 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
283*/;
284 }
285 set
286 {
287 while (value == null)
288 {
289 }
291 }
292 }
293
294 // Token: 0x17000366 RID: 870
295 // (get) Token: 0x06000FA2 RID: 4002 RVA: 0x00031784 File Offset: 0x0002F984
296 // (set) Token: 0x06000FA3 RID: 4003 RVA: 0x000317A4 File Offset: 0x0002F9A4
297 public string Connection
298 {
299 get
300 {
301 return this.webHeaders["Connection"];
302 }
303 set
304 {
305 this.CheckRequestStarted();
306 bool flag = string.IsNullOrWhiteSpace(value);
308 }
309 }
310
311 // Token: 0x17000367 RID: 871
312 // (get) Token: 0x06000FA4 RID: 4004 RVA: 0x000317E8 File Offset: 0x0002F9E8
313 // (set) Token: 0x06000FA5 RID: 4005 RVA: 0x000317FC File Offset: 0x0002F9FC
314 public override string ConnectionGroupName
315 {
316 get
317 {
318 return this.connectionGroup;
319 }
320 set
321 {
323 }
324 }
325
326 // Token: 0x17000368 RID: 872
327 // (get) Token: 0x06000FA6 RID: 4006 RVA: 0x00031810 File Offset: 0x0002FA10
328 // (set) Token: 0x06000FA7 RID: 4007 RVA: 0x00031824 File Offset: 0x0002FA24
329 public override long ContentLength
330 {
331 get
332 {
333 return this.contentLength;
334 }
335 set
336 {
337 this.CheckRequestStarted();
340 }
341 }
342
343 // Token: 0x17000369 RID: 873
344 // (set) Token: 0x06000FA8 RID: 4008 RVA: 0x00031848 File Offset: 0x0002FA48
346 {
347 set
348 {
350 }
351 }
352
353 // Token: 0x1700036A RID: 874
354 // (get) Token: 0x06000FA9 RID: 4009 RVA: 0x0003185C File Offset: 0x0002FA5C
355 // (set) Token: 0x06000FAA RID: 4010 RVA: 0x00031870 File Offset: 0x0002FA70
356 internal bool ThrowOnError
357 {
359 get
360 {
361 return this.<ThrowOnError>k__BackingField;
362 }
364 set
365 {
366 }
367 }
368
369 // Token: 0x1700036B RID: 875
370 // (get) Token: 0x06000FAB RID: 4011 RVA: 0x00031880 File Offset: 0x0002FA80
371 // (set) Token: 0x06000FAC RID: 4012 RVA: 0x000318A0 File Offset: 0x0002FAA0
372 public override string ContentType
373 {
374 get
375 {
376 return this.webHeaders["Content-Type"];
377 }
378 set
379 {
380 this.SetSpecialHeaders("Content-Type", value);
381 }
382 }
383
384 // Token: 0x1700036C RID: 876
385 // (get) Token: 0x06000FAD RID: 4013 RVA: 0x000318BC File Offset: 0x0002FABC
386 // (set) Token: 0x06000FAE RID: 4014 RVA: 0x000318D0 File Offset: 0x0002FAD0
388 {
389 get
390 {
391 return this.continueDelegate;
392 }
393 set
394 {
396 }
397 }
398
399 // Token: 0x1700036D RID: 877
400 // (get) Token: 0x06000FAF RID: 4015 RVA: 0x000318E4 File Offset: 0x0002FAE4
401 // (set) Token: 0x06000FB0 RID: 4016 RVA: 0x000318F8 File Offset: 0x0002FAF8
403 {
404 get
405 {
406 return this.cookieContainer;
407 }
408 set
409 {
411 }
412 }
413
414 // Token: 0x1700036E RID: 878
415 // (get) Token: 0x06000FB1 RID: 4017 RVA: 0x0003190C File Offset: 0x0002FB0C
416 // (set) Token: 0x06000FB2 RID: 4018 RVA: 0x00031920 File Offset: 0x0002FB20
417 public override ICredentials Credentials
418 {
419 get
420 {
421 return this.credentials;
422 }
423 set
424 {
426 }
427 }
428
429 // Token: 0x1700036F RID: 879
430 // (get) Token: 0x06000FB3 RID: 4019 RVA: 0x00031934 File Offset: 0x0002FB34
431 // (set) Token: 0x06000FB4 RID: 4020 RVA: 0x00031970 File Offset: 0x0002FB70
433 {
434 get
435 {
436 /*
437An exception occurred when decompiling this method (06000FB3)
438
439ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Net.HttpWebRequest::get_Date()
440
441 ---> System.Exception: Basic block has to end with unconditional control flow.
442{
443 Block_0:
444 stloc:CultureInfo(var_2_1B, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
445 stloc:DateTime(var_3_2D, call:DateTime(DateTime::ToLocalTime, call:DateTime[exp:valuetype [mscorlib]System.DateTime&](DateTime::ParseExact, ldloc:string(var_0_10), ldstr:string("r"), ldloc:CultureInfo[exp:IFormatProvider](var_2_1B))))
446}
447
448 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
449 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
450 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
451 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
452 --- End of inner exception stack trace ---
453 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
454 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
455*/;
456 }
457 set
458 {
459 this.SetDateHeaderHelper("Date", value);
460 }
461 }
462
463 // Token: 0x06000FB5 RID: 4021 RVA: 0x0003198C File Offset: 0x0002FB8C
464 private void SetDateHeaderHelper(string headerName, DateTime dateTime)
465 {
466 if (!true)
467 {
468 }
469 string text = HttpProtocolUtils.date2string(dateTime);
470 this.SetSpecialHeaders(headerName, text);
471 }
472
473 // Token: 0x17000370 RID: 880
474 // (get) Token: 0x06000FB6 RID: 4022 RVA: 0x000319AC File Offset: 0x0002FBAC
475 // (set) Token: 0x06000FB7 RID: 4023 RVA: 0x000319BC File Offset: 0x0002FBBC
476 [MonoTODO]
478 {
479 get
480 {
481 /*
482An exception occurred when decompiling this method (06000FB6)
483
484ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Net.HttpWebRequest::get_DefaultMaximumErrorResponseLength()
485
486 ---> System.Exception: Basic block has to end with unconditional control flow.
487{
488 IL_0000:
489 brtrue(IL_0000, ldc.i4:bool(1))
490}
491
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 1852
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 1878
495 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
496 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
497 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
498 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
499 --- End of inner exception stack trace ---
500 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
501 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
502*/;
503 }
504 set
505 {
506 if (!true)
507 {
508 }
509 }
510 }
511
512 // Token: 0x17000371 RID: 881
513 // (get) Token: 0x06000FB8 RID: 4024 RVA: 0x000319CC File Offset: 0x0002FBCC
514 // (set) Token: 0x06000FB9 RID: 4025 RVA: 0x000319EC File Offset: 0x0002FBEC
515 public string Expect
516 {
517 get
518 {
519 return this.webHeaders["Expect"];
520 }
521 set
522 {
523 this.CheckRequestStarted();
524 if (value != null)
525 {
526 string text = value.Trim().ToLower();
527 if (text != null && text._stringLength != 0)
528 {
529 bool flag = text == "100-continue";
530 this.webHeaders.CheckUpdate("Expect", value);
531 return;
532 }
533 }
534 this.webHeaders.RemoveInternal("Expect");
535 }
536 }
537
538 // Token: 0x17000372 RID: 882
539 // (get) Token: 0x06000FBA RID: 4026 RVA: 0x00031A48 File Offset: 0x0002FC48
540 public virtual bool HaveResponse
541 {
542 get
543 {
544 return this.haveResponse;
545 }
546 }
547
548 // Token: 0x17000373 RID: 883
549 // (get) Token: 0x06000FBB RID: 4027 RVA: 0x00031A5C File Offset: 0x0002FC5C
550 // (set) Token: 0x06000FBC RID: 4028 RVA: 0x00031A70 File Offset: 0x0002FC70
552 {
553 get
554 {
555 return this.webHeaders;
556 }
557 set
558 {
559 this.CheckRequestStarted();
560 }
561 }
562
563 // Token: 0x17000374 RID: 884
564 // (get) Token: 0x06000FBD RID: 4029 RVA: 0x00031A88 File Offset: 0x0002FC88
565 // (set) Token: 0x06000FBE RID: 4030 RVA: 0x00031AD8 File Offset: 0x0002FCD8
566 public string Host
567 {
568 get
569 {
570 global::System.Uri uri = this.actualUri;
571 if (!this.hostHasPort)
572 {
574 return uri.Host;
575 }
576 string host = uri.Host;
577 string text = uri.Port.ToString();
578 return host + ":" + text;
579 }
580 set
581 {
582 do
583 {
584 this.CheckRequestStarted();
585 }
586 while (value == null);
587 bool flag;
588 this.hostUri = flag;
589 }
590 }
591
592 // Token: 0x06000FBF RID: 4031 RVA: 0x00031B04 File Offset: 0x0002FD04
593 private bool TryGetHostUri(string hostName, [Out] global::System.Uri hostUri)
594 {
595 string scheme = this.actualUri.Scheme;
596 string pathAndQuery = this.actualUri.PathAndQuery;
597 return global::System.Uri.TryCreate(scheme + "://" + hostName + pathAndQuery, global::System.UriKind.Absolute, hostUri);
598 }
599
600 // Token: 0x17000375 RID: 885
601 // (get) Token: 0x06000FC0 RID: 4032 RVA: 0x00031B40 File Offset: 0x0002FD40
602 // (set) Token: 0x06000FC1 RID: 4033 RVA: 0x00031B78 File Offset: 0x0002FD78
604 {
605 get
606 {
607 /*
608An exception occurred when decompiling this method (06000FC0)
609
610ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Net.HttpWebRequest::get_IfModifiedSince()
611
612 ---> System.Exception: Basic block has to end with unconditional control flow.
613{
614 IL_001D:
615 stloc:DateTime(var_4_24, callgetter:DateTime(DateTime::get_Now))
616}
617
618 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
619 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
620 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
621 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
622 --- End of inner exception stack trace ---
623 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
624 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
625*/;
626 }
627 set
628 {
629 this.CheckRequestStarted();
630 string text;
631 this.webHeaders.SetInternal("If-Modified-Since", text);
632 }
633 }
634
635 // Token: 0x17000376 RID: 886
636 // (get) Token: 0x06000FC2 RID: 4034 RVA: 0x00031B9C File Offset: 0x0002FD9C
637 // (set) Token: 0x06000FC3 RID: 4035 RVA: 0x00031BB0 File Offset: 0x0002FDB0
638 public bool KeepAlive
639 {
640 get
641 {
642 return this.keepAlive;
643 }
644 set
645 {
646 }
647 }
648
649 // Token: 0x17000377 RID: 887
650 // (get) Token: 0x06000FC4 RID: 4036 RVA: 0x00031BC0 File Offset: 0x0002FDC0
651 // (set) Token: 0x06000FC5 RID: 4037 RVA: 0x00031BD4 File Offset: 0x0002FDD4
653 {
654 get
655 {
656 return this.maxAutoRedirect;
657 }
658 set
659 {
661 }
662 }
663
664 // Token: 0x17000378 RID: 888
665 // (get) Token: 0x06000FC6 RID: 4038 RVA: 0x00031BE8 File Offset: 0x0002FDE8
666 // (set) Token: 0x06000FC7 RID: 4039 RVA: 0x00031BFC File Offset: 0x0002FDFC
667 [MonoTODO("Use this")]
669 {
670 get
671 {
672 return this.maxResponseHeadersLength;
673 }
674 set
675 {
676 this.CheckRequestStarted();
678 }
679 }
680
681 // Token: 0x17000379 RID: 889
682 // (get) Token: 0x06000FC8 RID: 4040 RVA: 0x00031C18 File Offset: 0x0002FE18
683 // (set) Token: 0x06000FC9 RID: 4041 RVA: 0x00031C2C File Offset: 0x0002FE2C
684 [MonoTODO("Use this")]
686 {
687 get
688 {
689 if (!true)
690 {
691 }
692 return 1;
693 }
694 set
695 {
696 if (!true)
697 {
698 }
699 }
700 }
701
702 // Token: 0x1700037A RID: 890
703 // (get) Token: 0x06000FCA RID: 4042 RVA: 0x00031C3C File Offset: 0x0002FE3C
704 // (set) Token: 0x06000FCB RID: 4043 RVA: 0x00031C50 File Offset: 0x0002FE50
706 {
707 get
708 {
709 return this.readWriteTimeout;
710 }
711 set
712 {
713 this.CheckRequestStarted();
715 }
716 }
717
718 // Token: 0x1700037B RID: 891
719 // (get) Token: 0x06000FCC RID: 4044 RVA: 0x00031C6C File Offset: 0x0002FE6C
720 // (set) Token: 0x06000FCD RID: 4045 RVA: 0x00031C80 File Offset: 0x0002FE80
721 [MonoTODO]
723 {
724 get
725 {
726 return this.continueTimeout;
727 }
728 set
729 {
730 this.CheckRequestStarted();
732 }
733 }
734
735 // Token: 0x1700037C RID: 892
736 // (get) Token: 0x06000FCE RID: 4046 RVA: 0x00031C9C File Offset: 0x0002FE9C
737 // (set) Token: 0x06000FCF RID: 4047 RVA: 0x00031CB0 File Offset: 0x0002FEB0
738 public string MediaType
739 {
740 get
741 {
742 return this.mediaType;
743 }
744 set
745 {
747 }
748 }
749
750 // Token: 0x1700037D RID: 893
751 // (get) Token: 0x06000FD0 RID: 4048 RVA: 0x00031CC4 File Offset: 0x0002FEC4
752 // (set) Token: 0x06000FD1 RID: 4049 RVA: 0x00031CD8 File Offset: 0x0002FED8
753 public override string Method
754 {
755 get
756 {
757 return this.method;
758 }
759 set
760 {
761 bool flag = string.IsNullOrEmpty(value);
763 string text = value.ToUpperInvariant();
765 bool flag3 = text != "HEAD";
766 bool flag4 = this.method != "GET";
767 bool flag5 = this.method != "POST";
768 bool flag6 = this.method != "PUT";
769 bool flag7 = this.method != "DELETE";
770 bool flag8 = this.method != "CONNECT";
771 bool flag9 = this.method != "TRACE";
772 bool flag10 = this.method != "MKCOL";
774 }
775 }
776
777 // Token: 0x1700037E RID: 894
778 // (get) Token: 0x06000FD2 RID: 4050 RVA: 0x00031D94 File Offset: 0x0002FF94
779 // (set) Token: 0x06000FD3 RID: 4051 RVA: 0x00031DA8 File Offset: 0x0002FFA8
780 public bool Pipelined
781 {
782 get
783 {
784 return this.pipelined;
785 }
786 set
787 {
788 }
789 }
790
791 // Token: 0x1700037F RID: 895
792 // (get) Token: 0x06000FD4 RID: 4052 RVA: 0x00031DB8 File Offset: 0x0002FFB8
793 // (set) Token: 0x06000FD5 RID: 4053 RVA: 0x00031DCC File Offset: 0x0002FFCC
794 public override bool PreAuthenticate
795 {
796 get
797 {
798 return this.preAuthenticate;
799 }
800 set
801 {
802 }
803 }
804
805 // Token: 0x17000380 RID: 896
806 // (get) Token: 0x06000FD6 RID: 4054 RVA: 0x00031DDC File Offset: 0x0002FFDC
807 // (set) Token: 0x06000FD7 RID: 4055 RVA: 0x00031DF0 File Offset: 0x0002FFF0
809 {
810 get
811 {
812 return this.version;
813 }
814 set
815 {
816 if (!true)
817 {
818 }
819 bool flag = value != value;
820 if (!true)
821 {
822 }
823 bool flag2 = value != value;
824 this.force_version = true;
826 }
827 }
828
829 // Token: 0x17000381 RID: 897
830 // (get) Token: 0x06000FD8 RID: 4056 RVA: 0x00031E24 File Offset: 0x00030024
831 // (set) Token: 0x06000FD9 RID: 4057 RVA: 0x00031E38 File Offset: 0x00030038
832 public override IWebProxy Proxy
833 {
834 get
835 {
836 return this.proxy;
837 }
838 set
839 {
840 this.CheckRequestStarted();
843 }
844 }
845
846 // Token: 0x17000382 RID: 898
847 // (get) Token: 0x06000FDA RID: 4058 RVA: 0x00031E5C File Offset: 0x0003005C
848 // (set) Token: 0x06000FDB RID: 4059 RVA: 0x00031E7C File Offset: 0x0003007C
849 public string Referer
850 {
851 get
852 {
853 return this.webHeaders["Referer"];
854 }
855 set
856 {
857 this.CheckRequestStarted();
858 if (value != null && value.Trim()._stringLength != 0)
859 {
860 this.webHeaders.SetInternal("Referer", value);
861 return;
862 }
863 this.webHeaders.RemoveInternal("Referer");
864 }
865 }
866
867 // Token: 0x17000383 RID: 899
868 // (get) Token: 0x06000FDC RID: 4060 RVA: 0x00031EC4 File Offset: 0x000300C4
869 public override global::System.Uri RequestUri
870 {
871 get
872 {
873 return this.requestUri;
874 }
875 }
876
877 // Token: 0x17000384 RID: 900
878 // (get) Token: 0x06000FDD RID: 4061 RVA: 0x00031ED8 File Offset: 0x000300D8
879 // (set) Token: 0x06000FDE RID: 4062 RVA: 0x00031EEC File Offset: 0x000300EC
880 public bool SendChunked
881 {
882 get
883 {
884 return this.sendChunked;
885 }
886 set
887 {
888 this.CheckRequestStarted();
889 }
890 }
891
892 // Token: 0x17000385 RID: 901
893 // (get) Token: 0x06000FDF RID: 4063 RVA: 0x00031F00 File Offset: 0x00030100
895 {
896 get
897 {
898 return this.GetServicePoint();
899 }
900 }
901
902 // Token: 0x17000386 RID: 902
903 // (get) Token: 0x06000FE0 RID: 4064 RVA: 0x00031F14 File Offset: 0x00030114
905 {
906 get
907 {
908 return this.servicePoint;
909 }
910 }
911
912 // Token: 0x17000387 RID: 903
913 // (get) Token: 0x06000FE1 RID: 4065 RVA: 0x00031F28 File Offset: 0x00030128
914 public virtual bool SupportsCookieContainer
915 {
916 get
917 {
918 return true;
919 }
920 }
921
922 // Token: 0x17000388 RID: 904
923 // (get) Token: 0x06000FE2 RID: 4066 RVA: 0x00031F38 File Offset: 0x00030138
924 // (set) Token: 0x06000FE3 RID: 4067 RVA: 0x00031F4C File Offset: 0x0003014C
925 public override int Timeout
926 {
927 get
928 {
929 return this.timeout;
930 }
931 set
932 {
934 }
935 }
936
937 // Token: 0x17000389 RID: 905
938 // (get) Token: 0x06000FE4 RID: 4068 RVA: 0x00031F60 File Offset: 0x00030160
939 // (set) Token: 0x06000FE5 RID: 4069 RVA: 0x00031F80 File Offset: 0x00030180
940 public string TransferEncoding
941 {
942 get
943 {
944 return this.webHeaders["Transfer-Encoding"];
945 }
946 set
947 {
948 this.CheckRequestStarted();
949 bool flag = string.IsNullOrWhiteSpace(value);
950 this.webHeaders.RemoveInternal("Transfer-Encoding");
951 }
952 }
953
954 // Token: 0x1700038A RID: 906
955 // (get) Token: 0x06000FE6 RID: 4070 RVA: 0x00031FE0 File Offset: 0x000301E0
956 // (set) Token: 0x06000FE7 RID: 4071 RVA: 0x00031FF0 File Offset: 0x000301F0
957 public override bool UseDefaultCredentials
958 {
959 get
960 {
961 /*
962An exception occurred when decompiling this method (06000FE6)
963
964ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpWebRequest::get_UseDefaultCredentials()
965
966 ---> System.Exception: Basic block has to end with unconditional control flow.
967{
968 IL_0000:
969 brtrue(IL_0000, ldc.i4:bool(1))
970}
971
972 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
973 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
974 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
975 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
976 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
977 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
978 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
979 --- End of inner exception stack trace ---
980 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
981 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
982*/;
983 }
984 set
985 {
986 if (!true)
987 {
988 }
989 }
990 }
991
992 // Token: 0x1700038B RID: 907
993 // (get) Token: 0x06000FE8 RID: 4072 RVA: 0x00032004 File Offset: 0x00030204
994 // (set) Token: 0x06000FE9 RID: 4073 RVA: 0x00032024 File Offset: 0x00030224
995 public string UserAgent
996 {
997 get
998 {
999 return this.webHeaders["User-Agent"];
1000 }
1001 set
1002 {
1004 }
1005 }
1006
1007 // Token: 0x1700038C RID: 908
1008 // (get) Token: 0x06000FEA RID: 4074 RVA: 0x00032040 File Offset: 0x00030240
1009 // (set) Token: 0x06000FEB RID: 4075 RVA: 0x00032054 File Offset: 0x00030254
1011 {
1012 get
1013 {
1014 return this.unsafe_auth_blah;
1015 }
1016 set
1017 {
1018 }
1019 }
1020
1021 // Token: 0x1700038D RID: 909
1022 // (get) Token: 0x06000FEC RID: 4076 RVA: 0x00032064 File Offset: 0x00030264
1023 internal bool GotRequestStream
1024 {
1025 get
1026 {
1027 return this.gotRequestStream;
1028 }
1029 }
1030
1031 // Token: 0x1700038E RID: 910
1032 // (get) Token: 0x06000FED RID: 4077 RVA: 0x00032078 File Offset: 0x00030278
1033 // (set) Token: 0x06000FEE RID: 4078 RVA: 0x0003208C File Offset: 0x0003028C
1034 internal bool ExpectContinue
1035 {
1036 get
1037 {
1038 return this.expectContinue;
1039 }
1040 set
1041 {
1042 }
1043 }
1044
1045 // Token: 0x1700038F RID: 911
1046 // (get) Token: 0x06000FEF RID: 4079 RVA: 0x0003209C File Offset: 0x0003029C
1047 internal global::System.Uri AuthUri
1048 {
1049 get
1050 {
1051 return this.actualUri;
1052 }
1053 }
1054
1055 // Token: 0x17000390 RID: 912
1056 // (get) Token: 0x06000FF0 RID: 4080 RVA: 0x000320B0 File Offset: 0x000302B0
1057 internal bool ProxyQuery
1058 {
1059 get
1060 {
1062 if (servicePoint.usesProxy)
1063 {
1064 bool useConnect = servicePoint.useConnect;
1065 return;
1066 }
1067 }
1068 }
1069
1070 // Token: 0x17000391 RID: 913
1071 // (get) Token: 0x06000FF1 RID: 4081 RVA: 0x000320D4 File Offset: 0x000302D4
1073 {
1074 get
1075 {
1076 return this.certValidationCallback;
1077 }
1078 }
1079
1080 // Token: 0x17000392 RID: 914
1081 // (get) Token: 0x06000FF2 RID: 4082 RVA: 0x000320E8 File Offset: 0x000302E8
1082 // (set) Token: 0x06000FF3 RID: 4083 RVA: 0x00032108 File Offset: 0x00030308
1083 public global::System.Net.Security.RemoteCertificateValidationCallback ServerCertificateValidationCallback
1084 {
1085 get
1086 {
1088 if (serverCertValidationCallback != null)
1089 {
1091 }
1092 }
1093 set
1094 {
1095 if (value != null)
1096 {
1097 return;
1098 }
1099 }
1100 }
1101
1102 // Token: 0x06000FF4 RID: 4084 RVA: 0x0003211C File Offset: 0x0003031C
1104 {
1105 object obj = this.locker;
1106 if (this.hostChanged)
1107 {
1108 global::System.Uri uri = this.actualUri;
1109 IWebProxy webProxy = this.proxy;
1112 return servicePoint;
1113 }
1115 while (servicePoint2 == null)
1116 {
1117 }
1118 long num = 0L;
1119 if (servicePoint2 != null)
1120 {
1121 Monitor.Exit(obj);
1122 }
1123 if (num == 0L)
1124 {
1125 return this.servicePoint;
1126 }
1127 throw new OutOfMemoryException();
1128 }
1129
1130 // Token: 0x06000FF5 RID: 4085 RVA: 0x000321A0 File Offset: 0x000303A0
1131 public void AddRange(int range)
1132 {
1133 }
1134
1135 // Token: 0x06000FF6 RID: 4086 RVA: 0x000321B0 File Offset: 0x000303B0
1136 public void AddRange(int from, int to)
1137 {
1138 }
1139
1140 // Token: 0x06000FF7 RID: 4087 RVA: 0x000321C0 File Offset: 0x000303C0
1141 public void AddRange(string rangeSpecifier, int range)
1142 {
1143 this.AddRange(rangeSpecifier, (long)range);
1144 }
1145
1146 // Token: 0x06000FF8 RID: 4088 RVA: 0x000321D8 File Offset: 0x000303D8
1147 public void AddRange(string rangeSpecifier, int from, int to)
1148 {
1149 this.AddRange(rangeSpecifier, (long)from, (long)to);
1150 }
1151
1152 // Token: 0x06000FF9 RID: 4089 RVA: 0x000321F0 File Offset: 0x000303F0
1153 public void AddRange(long range)
1154 {
1155 }
1156
1157 // Token: 0x06000FFA RID: 4090 RVA: 0x00032200 File Offset: 0x00030400
1158 public void AddRange(long from, long to)
1159 {
1160 this.AddRange("bytes", from, to);
1161 }
1162
1163 // Token: 0x06000FFB RID: 4091 RVA: 0x0003221C File Offset: 0x0003041C
1164 public void AddRange(string rangeSpecifier, long range)
1165 {
1166 while (rangeSpecifier != null)
1167 {
1169 string text = this.webHeaders["Range"];
1170 if (text == null)
1171 {
1172 string text2 = text + "=";
1174 string text3;
1175 this.webHeaders.ChangeInternal("Range", text3);
1176 return;
1177 }
1178 long num = 0L;
1179 int num2;
1180 if (string.Compare(text.Substring((int)num, num2), rangeSpecifier, StringComparison.OrdinalIgnoreCase) == 0)
1181 {
1182 return;
1183 }
1184 }
1185 }
1186
1187 // Token: 0x06000FFC RID: 4092 RVA: 0x00032288 File Offset: 0x00030488
1188 public void AddRange(string rangeSpecifier, long from, long to)
1189 {
1190 if (rangeSpecifier != null)
1191 {
1193 string text = this.webHeaders["Range"];
1194 string text2;
1195 this.webHeaders.ChangeInternal("Range", text2);
1196 return;
1197 }
1198 }
1199
1200 // Token: 0x06000FFD RID: 4093 RVA: 0x000322C4 File Offset: 0x000304C4
1201 private WebOperation SendRequest(bool redirecting, global::System.Net.BufferOffsetSize writeBuffer, CancellationToken cancellationToken)
1202 {
1203 object obj = this.locker;
1205 int num;
1206 if (!this.requestSent || this.currentOperation == null)
1207 {
1208 num = 1;
1209 }
1210 long num2 = 0L;
1211 if (num != 0)
1212 {
1213 Monitor.Exit(obj);
1214 }
1215 if (num2 == 0L)
1216 {
1217 }
1218 throw new OutOfMemoryException();
1219 }
1220
1221 // Token: 0x06000FFE RID: 4094 RVA: 0x00032320 File Offset: 0x00030520
1223 {
1224 int num4;
1225 do
1226 {
1227 bool flag = this.method == "GET";
1228 bool flag2 = this.method == "CONNECT";
1229 bool flag3 = this.method == "HEAD";
1230 bool flag4 = this.method == "TRACE";
1231 if (this.method == null)
1232 {
1233 goto IL_00F2;
1234 }
1235 long num = this.contentLength;
1236 if (!this.sendChunked && !this.allowBuffering && this.keepAlive)
1237 {
1238 goto IL_00FF;
1239 }
1240 string transferEncoding = this.TransferEncoding;
1241 if (transferEncoding != null && !this.sendChunked)
1242 {
1243 bool flag5 = transferEncoding.Trim() != "";
1244 }
1245 object obj = this.locker;
1246 if (this.getResponseCalled)
1247 {
1248 goto IL_00FF;
1249 }
1250 string text;
1251 if (this.currentOperation == null)
1252 {
1253 text = this.method;
1254 int num2 = 1;
1255 this.gotRequestStream = num2 != 0;
1257 }
1258 long num3 = 0L;
1259 num4 = 21;
1260 if (text != null)
1261 {
1262 Monitor.Exit(obj);
1263 }
1264 if (num3 != 0L)
1265 {
1266 goto IL_00F9;
1267 }
1268 }
1269 while (num4 != 0);
1272 IL_00F2:
1274 IL_00F9:
1275 throw new OutOfMemoryException();
1276 IL_00FF:
1277 return "Content-Length not set";
1278 }
1279
1280 // Token: 0x06000FFF RID: 4095 RVA: 0x0003245C File Offset: 0x0003065C
1281 public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
1282 {
1283 Task task;
1284 return TaskToApm.Begin(task, callback, state);
1285 }
1286
1287 // Token: 0x06001000 RID: 4096 RVA: 0x00032474 File Offset: 0x00030674
1288 public override Stream EndGetRequestStream(IAsyncResult asyncResult)
1289 {
1290 if (asyncResult != null)
1291 {
1292 return;
1293 }
1294 }
1295
1296 // Token: 0x06001001 RID: 4097 RVA: 0x00032488 File Offset: 0x00030688
1297 public override Stream GetRequestStream()
1298 {
1299 }
1300
1301 // Token: 0x06001002 RID: 4098 RVA: 0x00002050 File Offset: 0x00000250
1302 [MonoTODO]
1304 {
1305 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1306 }
1307
1308 // Token: 0x06001003 RID: 4099 RVA: 0x00032498 File Offset: 0x00030698
1310 {
1311 Task task;
1312 return task;
1313 }
1314
1315 // Token: 0x06001004 RID: 4100 RVA: 0x000324A8 File Offset: 0x000306A8
1317 {
1318 /*
1319An exception occurred when decompiling this method (06001004)
1320
1321ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<T> System.Net.HttpWebRequest::RunWithTimeout<T>(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task`1<T>>,System.Int32,System.Action,System.Func`1<System.Boolean>,System.Threading.CancellationToken)
1322
1323 ---> System.Exception: Basic block has to end with unconditional control flow.
1324{
1325 IL_0003:
1326 stloc:CancellationToken(var_1_09, callgetter:CancellationToken(CancellationTokenSource::get_Token, ldloc:CancellationTokenSource(var_0)))
1327}
1328
1329 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
1330 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
1331 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
1332 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
1333 --- End of inner exception stack trace ---
1334 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
1335 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
1336*/;
1337 }
1338
1339 // Token: 0x06001005 RID: 4101 RVA: 0x000324C0 File Offset: 0x000306C0
1341 {
1342 /*
1343An exception occurred when decompiling this method (06001005)
1344
1345ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<T> System.Net.HttpWebRequest::RunWithTimeoutWorker<T>(System.Threading.Tasks.Task`1<T>,System.Int32,System.Action,System.Func`1<System.Boolean>,System.Threading.CancellationTokenSource)
1346
1347 ---> System.Exception: Basic block has to end with unconditional control flow.
1348{
1349 IL_0009:
1350 stloc:Timer(var_0_10, ldfld:Timer(CancellationTokenSource::_timer, ldloc:CancellationTokenSource(cts)))
1351 stloc:object(var_1_1D, ldfld:object(MarshalByRefObject::_identity, ldfld:Timer[exp:MarshalByRefObject](CancellationTokenSource::_timer, ldloc:CancellationTokenSource(cts))))
1352 stloc:TimerCallback(var_2_2A, ldfld:TimerCallback(Timer::callback, ldfld:Timer(CancellationTokenSource::_timer, ldloc:CancellationTokenSource(cts))))
1353}
1354
1355 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
1356 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
1357 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
1358 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
1359 --- End of inner exception stack trace ---
1360 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
1361 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
1362*/;
1363 }
1364
1365 // Token: 0x06001006 RID: 4102 RVA: 0x000324F8 File Offset: 0x000306F8
1367 {
1368 int num = this.timeout;
1369 throw new NullReferenceException();
1370 }
1371
1372 // Token: 0x06001007 RID: 4103 RVA: 0x00032514 File Offset: 0x00030714
1374 {
1375 /*
1376An exception occurred when decompiling this method (06001007)
1377
1378ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Net.HttpWebResponse> System.Net.HttpWebRequest::MyGetResponseAsync(System.Threading.CancellationToken)
1379
1380 ---> System.Exception: Basic block has to end with unconditional control flow.
1381{
1382 IL_0000:
1383 brtrue(IL_0000, ldc.i4:bool(1))
1384}
1385
1386 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
1387 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
1388 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
1389 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
1390 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
1391 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
1392 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
1393 --- End of inner exception stack trace ---
1394 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
1395 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
1396*/;
1397 }
1398
1399 // Token: 0x06001008 RID: 4104 RVA: 0x00032524 File Offset: 0x00030724
1400 private Task<ValueTuple<HttpWebResponse, bool, bool, global::System.Net.BufferOffsetSize, WebOperation>> GetResponseFromData(WebResponseStream stream, CancellationToken cancellationToken)
1401 {
1402 /*
1403An exception occurred when decompiling this method (06001008)
1404
1405ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.ValueTuple`5<System.Net.HttpWebResponse,System.Boolean,System.Boolean,System.Net.BufferOffsetSize,System.Net.WebOperation>> System.Net.HttpWebRequest::GetResponseFromData(System.Net.WebResponseStream,System.Threading.CancellationToken)
1406
1407 ---> System.Exception: Basic block has to end with unconditional control flow.
1408{
1409 IL_0000:
1410 brtrue(IL_0000, ldc.i4:bool(1))
1411}
1412
1413 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
1414 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
1415 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
1416 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
1417 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
1418 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
1419 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
1420 --- End of inner exception stack trace ---
1421 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
1422 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
1423*/;
1424 }
1425
1426 // Token: 0x06001009 RID: 4105 RVA: 0x00032534 File Offset: 0x00030734
1433
1434 // Token: 0x0600100A RID: 4106 RVA: 0x00032550 File Offset: 0x00030750
1436 {
1437 long num = 0L;
1438 long num2 = 0L;
1439 int num3 = Interlocked.CompareExchange(0, (int)num, (int)num2);
1440 return HttpWebRequest.GetWebException(e, num != 0L);
1441 }
1442
1443 // Token: 0x0600100B RID: 4107 RVA: 0x00032574 File Offset: 0x00030774
1445 {
1446 if (!true)
1447 {
1448 }
1449 Exception ex;
1450 if (ex != null)
1451 {
1452 }
1454 }
1455
1456 // Token: 0x0600100C RID: 4108 RVA: 0x00002050 File Offset: 0x00000250
1458 {
1459 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1460 }
1461
1462 // Token: 0x0600100D RID: 4109 RVA: 0x0003258C File Offset: 0x0003078C
1463 public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
1464 {
1465 string transferEncoding = this.TransferEncoding;
1466 if (transferEncoding != null && !this.sendChunked)
1467 {
1468 bool flag = transferEncoding.Trim() != "";
1469 }
1470 Task task;
1471 return TaskToApm.Begin(task, callback, state);
1472 }
1473
1474 // Token: 0x0600100E RID: 4110 RVA: 0x000325CC File Offset: 0x000307CC
1475 public override WebResponse EndGetResponse(IAsyncResult asyncResult)
1476 {
1477 if (asyncResult != null)
1478 {
1479 return;
1480 }
1481 }
1482
1483 // Token: 0x0600100F RID: 4111 RVA: 0x000325E0 File Offset: 0x000307E0
1484 public Stream EndGetRequestStream(IAsyncResult asyncResult, [Out] TransportContext context)
1485 {
1486 /*
1487An exception occurred when decompiling this method (0600100F)
1488
1489ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream System.Net.HttpWebRequest::EndGetRequestStream(System.IAsyncResult,System.Net.TransportContext)
1490
1491 ---> System.Exception: Basic block has to end with unconditional control flow.
1492{
1493 IL_0000:
1494 brtrue(IL_0000, logicnot:bool(ldloc:IAsyncResult[exp:bool](asyncResult)))
1495}
1496
1497 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
1498 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
1499 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
1500 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
1501 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
1502 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
1503 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
1504 --- End of inner exception stack trace ---
1505 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
1506 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
1507*/;
1508 }
1509
1510 // Token: 0x06001010 RID: 4112 RVA: 0x000325F0 File Offset: 0x000307F0
1511 public override WebResponse GetResponse()
1512 {
1513 }
1514
1515 // Token: 0x17000393 RID: 915
1516 // (get) Token: 0x06001011 RID: 4113 RVA: 0x00032600 File Offset: 0x00030800
1517 // (set) Token: 0x06001012 RID: 4114 RVA: 0x00032614 File Offset: 0x00030814
1518 internal bool FinishedReading
1519 {
1520 get
1521 {
1522 return this.finished_reading;
1523 }
1524 set
1525 {
1526 }
1527 }
1528
1529 // Token: 0x17000394 RID: 916
1530 // (get) Token: 0x06001013 RID: 4115 RVA: 0x00002050 File Offset: 0x00000250
1531 internal bool Aborted
1532 {
1533 get
1534 {
1535 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1536 }
1537 }
1538
1539 // Token: 0x06001014 RID: 4116 RVA: 0x00032624 File Offset: 0x00030824
1540 public override void Abort()
1541 {
1542 int num = 1;
1543 long num2 = 0L;
1544 int num3 = 1;
1545 int num4 = Interlocked.CompareExchange(1073741824, num, (int)num2);
1547 this.haveResponse = num3 != 0;
1548 if (webOperation != null)
1549 {
1550 webOperation.Abort();
1551 }
1552 if (this.responseTask != null)
1553 {
1554 }
1555 if (this.webResponse != null)
1556 {
1557 }
1558 }
1559
1560 // Token: 0x06001015 RID: 4117 RVA: 0x00002050 File Offset: 0x00000250
1562 {
1563 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1564 }
1565
1566 // Token: 0x06001016 RID: 4118 RVA: 0x00002050 File Offset: 0x00000250
1568 {
1569 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1570 }
1571
1572 // Token: 0x06001017 RID: 4119 RVA: 0x00032674 File Offset: 0x00030874
1573 private void CheckRequestStarted()
1574 {
1575 while (this.requestSent)
1576 {
1577 }
1578 }
1579
1580 // Token: 0x06001018 RID: 4120 RVA: 0x0003268C File Offset: 0x0003088C
1581 internal void DoContinueDelegate(int statusCode, WebHeaderCollection headers)
1582 {
1584 if (httpContinueDelegate != null)
1585 {
1586 IntPtr invoke_impl = httpContinueDelegate.invoke_impl;
1587 IntPtr method_code = httpContinueDelegate.method_code;
1589 return;
1590 }
1591 }
1592
1593 // Token: 0x06001019 RID: 4121 RVA: 0x000326BC File Offset: 0x000308BC
1595 {
1597 this.method = "GET";
1598 webHeaderCollection.RemoveInternal("Transfer-Encoding");
1599 }
1600
1601 // Token: 0x0600101A RID: 4122 RVA: 0x000326E8 File Offset: 0x000308E8
1602 private bool Redirect(HttpStatusCode code, WebResponse response)
1603 {
1604 int num = this.redirects;
1605 this.redirects = num;
1606 bool flag = this.method == "POST";
1607 this.RewriteRedirectToGet();
1608 string text2;
1609 string text = "Invalid status code: " + text2;
1610 bool flag2 = this.method != "GET";
1611 if (this.allowBuffering)
1612 {
1614 }
1615 if (this.ResendContentFactory == null)
1616 {
1618 long num2 = this.contentLength;
1619 }
1620 bool flag3 = this.method == "GET";
1621 string text3;
1622 if (text3 != null)
1623 {
1624 global::System.Uri uri = this.actualUri;
1625 string scheme = uri.Scheme;
1626 string text4;
1627 return text4 != scheme;
1628 }
1629 }
1630
1631 // Token: 0x0600101B RID: 4123 RVA: 0x000327CC File Offset: 0x000309CC
1632 private string GetHeaders()
1633 {
1634 /*
1635An exception occurred when decompiling this method (0600101B)
1636
1637ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.HttpWebRequest::GetHeaders()
1638
1639 ---> System.Exception: Basic block has to end with unconditional control flow.
1640{
1641 IL_025F:
1642 brtrue(IL_0000, ldfld:bool(HttpWebRequest::gotRequestStream, ldloc:HttpWebRequest(this)))
1643}
1644
1645 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
1646 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
1647 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
1648 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
1649 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
1650 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
1651 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
1652 --- End of inner exception stack trace ---
1653 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
1654 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
1655*/;
1656 }
1657
1658 // Token: 0x0600101C RID: 4124 RVA: 0x00032A44 File Offset: 0x00030C44
1659 private void DoPreAuthenticate()
1660 {
1661 if (this.proxy != null)
1662 {
1663 global::System.Uri uri = this.actualUri;
1664 return;
1665 }
1666 }
1667
1668 // Token: 0x0600101D RID: 4125 RVA: 0x00032ADC File Offset: 0x00030CDC
1669 internal byte[] GetRequestHeaders()
1670 {
1671 bool useConnect;
1672 global::System.Uri uri;
1673 do
1674 {
1676 if (!servicePoint.usesProxy)
1677 {
1678 goto IL_004D;
1679 }
1680 useConnect = servicePoint.useConnect;
1681 uri = this.actualUri;
1682 }
1683 while (useConnect);
1684 string scheme = uri.Scheme;
1685 string host = this.Host;
1686 string pathAndQuery = this.actualUri.PathAndQuery;
1687 string text = string.Format("{0}://{1}{2}", scheme, host, pathAndQuery);
1688 IL_004D:
1689 string pathAndQuery2 = this.actualUri.PathAndQuery;
1690 if (!this.force_version)
1691 {
1694 Version version = this.version;
1697 }
1698 Version version2 = this.version;
1700 string text2 = this.method;
1701 if ((text2 == null || text2 != null) && (pathAndQuery2 == null || pathAndQuery2 != null))
1702 {
1703 int major = this.actualVersion._Major;
1704 int minor = this.actualVersion._Minor;
1705 string headers = this.GetHeaders();
1707 }
1708 throw new ArrayTypeMismatchException();
1709 }
1710
1711 // Token: 0x0600101E RID: 4126 RVA: 0x00032BCC File Offset: 0x00030DCC
1712 private ValueTuple<WebOperation, bool> HandleNtlmAuth(WebResponseStream stream, HttpWebResponse response, global::System.Net.BufferOffsetSize writeBuffer, CancellationToken cancellationToken)
1713 {
1714 if (372 != 0)
1715 {
1716 HttpWebRequest.NtlmAuthState ntlm_auth_state = this.auth_state.ntlm_auth_state;
1717 return "NTLM";
1718 }
1719 return "NTLM";
1720 }
1721
1722 // Token: 0x0600101F RID: 4127 RVA: 0x00032C5C File Offset: 0x00030E5C
1723 private bool CheckAuthorization(WebResponse response, HttpStatusCode code)
1724 {
1725 bool flag;
1726 return flag;
1727 }
1728
1729 // Token: 0x06001020 RID: 4128 RVA: 0x00032C6C File Offset: 0x00030E6C
1730 private ValueTuple<Task<global::System.Net.BufferOffsetSize>, WebException> GetRewriteHandler(HttpWebResponse response, bool redirect)
1731 {
1732 /*
1733An exception occurred when decompiling this method (06001020)
1734
1735ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ValueTuple`2<System.Threading.Tasks.Task`1<System.Net.BufferOffsetSize>,System.Net.WebException> System.Net.HttpWebRequest::GetRewriteHandler(System.Net.HttpWebResponse,System.Boolean)
1736
1737 ---> System.Exception: Basic block has to end with unconditional control flow.
1738{
1739 Block_1:
1740 stloc:BufferOffsetSize(var_1_27, call:BufferOffsetSize(WebRequestStream::GetWriteBuffer, ldfld:WebRequestStream(HttpWebRequest::writeStream, ldloc:HttpWebRequest(this))))
1741}
1742
1743 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
1744 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
1745 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
1746 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
1747 --- End of inner exception stack trace ---
1748 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
1749 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
1750*/;
1751 }
1752
1753 // Token: 0x06001021 RID: 4129 RVA: 0x00032CA0 File Offset: 0x00030EA0
1754 private ValueTuple<bool, bool, Task<global::System.Net.BufferOffsetSize>, WebException> CheckFinalStatus(HttpWebResponse response)
1755 {
1756 /*
1757An exception occurred when decompiling this method (06001021)
1758
1759ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ValueTuple`4<System.Boolean,System.Boolean,System.Threading.Tasks.Task`1<System.Net.BufferOffsetSize>,System.Net.WebException> System.Net.HttpWebRequest::CheckFinalStatus(System.Net.HttpWebResponse)
1760
1761 ---> System.Exception: Basic block has to end with unconditional control flow.
1762{
1763 Block_9:
1764 stloc:int32(var_11_C4, ldfld:int32(HttpWebRequest::redirects, ldloc:HttpWebRequest(this)))
1765 stloc:int32(var_12_CC, ldfld:int32(HttpWebRequest::maxAutoRedirect, ldloc:HttpWebRequest(this)))
1766}
1767
1768 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
1769 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
1770 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
1771 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
1772 --- End of inner exception stack trace ---
1773 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
1774 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
1775*/;
1776 }
1777
1778 // Token: 0x17000395 RID: 917
1779 // (get) Token: 0x06001022 RID: 4130 RVA: 0x00032D7C File Offset: 0x00030F7C
1780 // (set) Token: 0x06001023 RID: 4131 RVA: 0x00032D90 File Offset: 0x00030F90
1781 internal bool ReuseConnection
1782 {
1784 get
1785 {
1786 return this.<ReuseConnection>k__BackingField;
1787 }
1789 set
1790 {
1791 }
1792 }
1793
1794 // Token: 0x06001024 RID: 4132 RVA: 0x00002050 File Offset: 0x00000250
1796 {
1797 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1798 }
1799
1800 // Token: 0x06001025 RID: 4133 RVA: 0x00032DA0 File Offset: 0x00030FA0
1803 {
1804 return this.Aborted;
1805 }
1806
1807 // Token: 0x06001026 RID: 4134 RVA: 0x00032DB4 File Offset: 0x00030FB4
1809 private Task<global::System.Net.BufferOffsetSize> <GetRewriteHandler>b__271_0()
1810 {
1811 /*
1812An exception occurred when decompiling this method (06001026)
1813
1814ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<System.Net.BufferOffsetSize> System.Net.HttpWebRequest::<GetRewriteHandler>b__271_0()
1815
1816 ---> System.Exception: Basic block has to end with unconditional control flow.
1817{
1818 IL_0000:
1819 brtrue(IL_0000, ldc.i4:bool(1))
1820}
1821
1822 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
1823 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
1824 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
1825 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
1826 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
1827 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
1828 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
1829 --- End of inner exception stack trace ---
1830 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
1831 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
1832*/;
1833 }
1834
1835 // Token: 0x06001027 RID: 4135 RVA: 0x00032DC4 File Offset: 0x00030FC4
1836 [Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
1837 [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
1839 {
1840 throw new NotSupportedException();
1841 }
1842
1843 // Token: 0x04000C64 RID: 3172
1844 private global::System.Uri requestUri;
1845
1846 // Token: 0x04000C65 RID: 3173
1847 private global::System.Uri actualUri;
1848
1849 // Token: 0x04000C66 RID: 3174
1850 private bool hostChanged;
1851
1852 // Token: 0x04000C67 RID: 3175
1853 private bool allowAutoRedirect;
1854
1855 // Token: 0x04000C68 RID: 3176
1856 private bool allowBuffering;
1857
1858 // Token: 0x04000C69 RID: 3177
1860
1861 // Token: 0x04000C6A RID: 3178
1862 private global::System.Security.Cryptography.X509Certificates.X509CertificateCollection certificates;
1863
1864 // Token: 0x04000C6B RID: 3179
1865 private string connectionGroup;
1866
1867 // Token: 0x04000C6C RID: 3180
1868 private bool haveContentLength;
1869
1870 // Token: 0x04000C6D RID: 3181
1871 private long contentLength;
1872
1873 // Token: 0x04000C6E RID: 3182
1875
1876 // Token: 0x04000C6F RID: 3183
1878
1879 // Token: 0x04000C70 RID: 3184
1881
1882 // Token: 0x04000C71 RID: 3185
1883 private bool haveResponse;
1884
1885 // Token: 0x04000C72 RID: 3186
1886 private bool requestSent;
1887
1888 // Token: 0x04000C73 RID: 3187
1890
1891 // Token: 0x04000C74 RID: 3188
1892 private bool keepAlive;
1893
1894 // Token: 0x04000C75 RID: 3189
1895 private int maxAutoRedirect;
1896
1897 // Token: 0x04000C76 RID: 3190
1898 private string mediaType;
1899
1900 // Token: 0x04000C77 RID: 3191
1901 private string method;
1902
1903 // Token: 0x04000C78 RID: 3192
1904 private string initialMethod;
1905
1906 // Token: 0x04000C79 RID: 3193
1907 private bool pipelined;
1908
1909 // Token: 0x04000C7A RID: 3194
1910 private bool preAuthenticate;
1911
1912 // Token: 0x04000C7B RID: 3195
1913 private bool usedPreAuth;
1914
1915 // Token: 0x04000C7C RID: 3196
1917
1918 // Token: 0x04000C7D RID: 3197
1919 private bool force_version;
1920
1921 // Token: 0x04000C7E RID: 3198
1923
1924 // Token: 0x04000C7F RID: 3199
1926
1927 // Token: 0x04000C80 RID: 3200
1928 private bool sendChunked;
1929
1930 // Token: 0x04000C81 RID: 3201
1932
1933 // Token: 0x04000C82 RID: 3202
1934 private int timeout;
1935
1936 // Token: 0x04000C83 RID: 3203
1937 private int continueTimeout;
1938
1939 // Token: 0x04000C84 RID: 3204
1941
1942 // Token: 0x04000C85 RID: 3205
1944
1945 // Token: 0x04000C86 RID: 3206
1947
1948 // Token: 0x04000C87 RID: 3207
1950
1951 // Token: 0x04000C88 RID: 3208
1952 private int aborted;
1953
1954 // Token: 0x04000C89 RID: 3209
1955 private bool gotRequestStream;
1956
1957 // Token: 0x04000C8A RID: 3210
1958 private int redirects;
1959
1960 // Token: 0x04000C8B RID: 3211
1961 private bool expectContinue;
1962
1963 // Token: 0x04000C8C RID: 3212
1964 private bool getResponseCalled;
1965
1966 // Token: 0x04000C8D RID: 3213
1967 private object locker;
1968
1969 // Token: 0x04000C8E RID: 3214
1970 private bool finished_reading;
1971
1972 // Token: 0x04000C8F RID: 3215
1974
1975 // Token: 0x04000C90 RID: 3216
1977
1978 // Token: 0x04000C91 RID: 3217
1980
1981 // Token: 0x04000C92 RID: 3218
1983
1984 // Token: 0x04000C93 RID: 3219
1985 private static global::System.Net.Cache.RequestCachePolicy defaultCachePolicy;
1986
1987 // Token: 0x04000C94 RID: 3220
1988 private int readWriteTimeout;
1989
1990 // Token: 0x04000C95 RID: 3221
1992
1993 // Token: 0x04000C96 RID: 3222
1995
1996 // Token: 0x04000C97 RID: 3223
1998
1999 // Token: 0x04000C98 RID: 3224
2000 private bool hostHasPort;
2001
2002 // Token: 0x04000C99 RID: 3225
2003 private global::System.Uri hostUri;
2004
2005 // Token: 0x04000C9A RID: 3226
2007
2008 // Token: 0x04000C9B RID: 3227
2010
2011 // Token: 0x04000C9C RID: 3228
2014
2015 // Token: 0x04000C9D RID: 3229
2016 internal readonly int ID;
2017
2018 // Token: 0x04000C9E RID: 3230
2020 private bool <ThrowOnError>k__BackingField;
2021
2022 // Token: 0x04000C9F RID: 3231
2023 private bool unsafe_auth_blah;
2024
2025 // Token: 0x04000CA0 RID: 3232
2027 private bool <ReuseConnection>k__BackingField;
2028
2029 // Token: 0x02000256 RID: 598
2030 private enum NtlmAuthState
2031 {
2032 // Token: 0x04000CA2 RID: 3234
2033 None,
2034 // Token: 0x04000CA3 RID: 3235
2035 Challenge,
2036 // Token: 0x04000CA4 RID: 3236
2037 Response
2038 }
2039
2040 // Token: 0x02000257 RID: 599
2041 private struct AuthorizationState
2042 {
2043 // Token: 0x17000396 RID: 918
2044 // (get) Token: 0x06001028 RID: 4136 RVA: 0x00032DD8 File Offset: 0x00030FD8
2045 public bool IsCompleted
2046 {
2047 get
2048 {
2049 return this.isCompleted;
2050 }
2051 }
2052
2053 // Token: 0x17000397 RID: 919
2054 // (get) Token: 0x06001029 RID: 4137 RVA: 0x00032DEC File Offset: 0x00030FEC
2056 {
2057 get
2058 {
2059 return this.ntlm_auth_state;
2060 }
2061 }
2062
2063 // Token: 0x17000398 RID: 920
2064 // (get) Token: 0x0600102A RID: 4138 RVA: 0x00032E00 File Offset: 0x00031000
2066 {
2067 get
2068 {
2069 if (this.isCompleted)
2070 {
2071 HttpWebRequest.NtlmAuthState ntlmAuthState = this.ntlm_auth_state;
2072 return;
2073 }
2074 }
2075 }
2076
2077 // Token: 0x0600102B RID: 4139 RVA: 0x00032E20 File Offset: 0x00031020
2082
2083 // Token: 0x0600102C RID: 4140 RVA: 0x00032E34 File Offset: 0x00031034
2085 {
2086 /*
2087An exception occurred when decompiling this method (0600102C)
2088
2089ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpWebRequest/AuthorizationState::CheckAuthorization(System.Net.WebResponse,System.Net.HttpStatusCode)
2090
2091 ---> System.Exception: Basic block has to end with unconditional control flow.
2092{
2093 IL_004E:
2094 stloc:bool(var_6_54, ldfld:bool(AuthorizationState::isProxy, ldloc:valuetype System.Net.HttpWebRequest/AuthorizationState&(this)))
2095 stloc:NtlmAuthState(var_8_5C, ldfld:NtlmAuthState(AuthorizationState::ntlm_auth_state, ldloc:valuetype System.Net.HttpWebRequest/AuthorizationState&(this)))
2096 stfld:NtlmAuthState(AuthorizationState::ntlm_auth_state, ldloc:valuetype System.Net.HttpWebRequest/AuthorizationState&(this), ldloc:NtlmAuthState(var_8_5C))
2097}
2098
2099 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
2100 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
2101 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
2102 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
2103 --- End of inner exception stack trace ---
2104 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
2105 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
2106*/;
2107 }
2108
2109 // Token: 0x0600102D RID: 4141 RVA: 0x00032EAC File Offset: 0x000310AC
2110 public void Reset()
2111 {
2112 bool flag = this.isProxy;
2113 }
2114
2115 // Token: 0x0600102E RID: 4142 RVA: 0x00032EC0 File Offset: 0x000310C0
2116 public override string ToString()
2117 {
2118 bool flag = this.isProxy;
2119 bool flag2 = this.isCompleted;
2120 HttpWebRequest.NtlmAuthState ntlmAuthState = this.ntlm_auth_state;
2121 string text;
2122 return text;
2123 }
2124
2125 // Token: 0x04000CA5 RID: 3237
2127
2128 // Token: 0x04000CA6 RID: 3238
2129 private readonly bool isProxy;
2130
2131 // Token: 0x04000CA7 RID: 3239
2132 private bool isCompleted;
2133
2134 // Token: 0x04000CA8 RID: 3240
2136 }
2137
2138 // Token: 0x02000258 RID: 600
2140 [Serializable]
2141 private sealed class <>c__241<T>
2142 {
2143 // Token: 0x0600102F RID: 4143 RVA: 0x00032EE4 File Offset: 0x000310E4
2144 // Note: this type is marked as 'beforefieldinit'.
2146 {
2147 }
2148
2149 // Token: 0x06001030 RID: 4144 RVA: 0x00032EF4 File Offset: 0x000310F4
2151 {
2152 }
2153
2154 // Token: 0x06001031 RID: 4145 RVA: 0x00032F08 File Offset: 0x00031108
2155 internal int? <RunWithTimeoutWorker>b__241_0(Task<T> t)
2156 {
2157 /*
2158An exception occurred when decompiling this method (06001031)
2159
2160ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1<System.Int32> System.Net.HttpWebRequest/<>c__241`1::<RunWithTimeoutWorker>b__241_0(System.Threading.Tasks.Task`1<T>)
2161
2162 ---> System.Exception: Basic block has to end with unconditional control flow.
2163{
2164 IL_0000:
2165 brtrue(IL_0000, logicnot:bool(callgetter:AggregateException[exp:bool](Task::get_Exception, ldloc:class [mscorlib]System.Threading.Tasks.Task`1<!T>[exp:Task](t))))
2166}
2167
2168 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
2169 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
2170 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
2171 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
2172 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
2173 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
2174 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
2175 --- End of inner exception stack trace ---
2176 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
2177 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
2178*/;
2179 }
2180
2181 // Token: 0x04000CA9 RID: 3241
2182 public static readonly HttpWebRequest.<>c__241<T> <>9;
2183
2184 // Token: 0x04000CAA RID: 3242
2185 public static Func<Task<T>, int?> <>9__241_0;
2186 }
2187
2188 // Token: 0x02000259 RID: 601
2190 [StructLayout(3)]
2192 {
2193 // Token: 0x06001032 RID: 4146 RVA: 0x00002050 File Offset: 0x00000250
2194 private void MoveNext()
2195 {
2196 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2197 }
2198
2199 // Token: 0x06001033 RID: 4147 RVA: 0x00002050 File Offset: 0x00000250
2202 {
2203 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2204 }
2205
2206 // Token: 0x04000CAB RID: 3243
2208
2209 // Token: 0x04000CAC RID: 3244
2211
2212 // Token: 0x04000CAD RID: 3245
2214
2215 // Token: 0x04000CAE RID: 3246
2216 public int timeout;
2217
2218 // Token: 0x04000CAF RID: 3247
2220
2221 // Token: 0x04000CB0 RID: 3248
2223
2224 // Token: 0x04000CB1 RID: 3249
2226
2227 // Token: 0x04000CB2 RID: 3250
2229 }
2230
2231 // Token: 0x0200025A RID: 602
2233 [StructLayout(3)]
2235 {
2236 // Token: 0x06001034 RID: 4148 RVA: 0x00032F1C File Offset: 0x0003111C
2237 private void MoveNext()
2238 {
2240 }
2241
2242 // Token: 0x06001035 RID: 4149 RVA: 0x000332E0 File Offset: 0x000314E0
2247
2248 // Token: 0x04000CB3 RID: 3251
2250
2251 // Token: 0x04000CB4 RID: 3252
2253
2254 // Token: 0x04000CB5 RID: 3253
2256
2257 // Token: 0x04000CB6 RID: 3254
2259
2260 // Token: 0x04000CB7 RID: 3255
2261 private WebCompletionSource <completion>5__2;
2262
2263 // Token: 0x04000CB8 RID: 3256
2264 private WebOperation <operation>5__3;
2265
2266 // Token: 0x04000CB9 RID: 3257
2267 private WebException <throwMe>5__4;
2268
2269 // Token: 0x04000CBA RID: 3258
2270 private HttpWebResponse <response>5__5;
2271
2272 // Token: 0x04000CBB RID: 3259
2273 private WebResponseStream <stream>5__6;
2274
2275 // Token: 0x04000CBC RID: 3260
2276 private bool <redirect>5__7;
2277
2278 // Token: 0x04000CBD RID: 3261
2279 private bool <mustReadAll>5__8;
2280
2281 // Token: 0x04000CBE RID: 3262
2282 private WebOperation <ntlm>5__9;
2283
2284 // Token: 0x04000CBF RID: 3263
2285 private global::System.Net.BufferOffsetSize <writeBuffer>5__10;
2286
2287 // Token: 0x04000CC0 RID: 3264
2289
2290 // Token: 0x04000CC1 RID: 3265
2292
2293 // Token: 0x04000CC2 RID: 3266
2295
2296 // Token: 0x04000CC3 RID: 3267
2297 [TupleElementNames(new string[] { "response", "redirect", "mustReadAll", "writeBuffer", "ntlm" })]
2299 }
2300
2301 // Token: 0x0200025B RID: 603
2303 [StructLayout(3)]
2305 {
2306 // Token: 0x06001036 RID: 4150 RVA: 0x000332F0 File Offset: 0x000314F0
2307 private void MoveNext()
2308 {
2310 global::System.Uri actualUri = httpWebRequest.actualUri;
2311 string method = httpWebRequest.method;
2314 object locker = httpWebRequest.locker;
2315 HttpWebResponse httpWebResponse = this.<response>5__2;
2316 ValueTuple<bool, bool, Task<global::System.Net.BufferOffsetSize>, WebException> valueTuple = httpWebRequest.CheckFinalStatus(httpWebResponse);
2317 long num = 0L;
2319 if (num != 0L)
2320 {
2321 throw new OutOfMemoryException();
2322 }
2323 if (this.<throwMe>5__3 != null)
2324 {
2325 if (this.<mustReadAll>5__5)
2326 {
2328 CancellationToken cancellationToken = this.cancellationToken;
2329 long num2 = 0L;
2330 Task task = webResponseStream2.ReadAllAsync(num2 != 0L, cancellationToken);
2331 long num3 = 0L;
2333 return;
2334 }
2335 throw new OutOfMemoryException();
2336 }
2337 else
2338 {
2339 IWebProxy webProxy;
2340 if (webProxy != null)
2341 {
2342 int num4 = 1;
2343 this.<>1__state = num4;
2344 Task task2;
2345 this.<>u__2.m_task = task2;
2346 return;
2347 }
2348 return;
2349 }
2350 }
2351
2352 // Token: 0x06001037 RID: 4151 RVA: 0x00033510 File Offset: 0x00031710
2357
2358 // Token: 0x04000CC4 RID: 3268
2360
2361 // Token: 0x04000CC5 RID: 3269
2362 [TupleElementNames(new string[] { "response", "redirect", "mustReadAll", "writeBuffer", "ntlm" })]
2364
2365 // Token: 0x04000CC6 RID: 3270
2367
2368 // Token: 0x04000CC7 RID: 3271
2370
2371 // Token: 0x04000CC8 RID: 3272
2373
2374 // Token: 0x04000CC9 RID: 3273
2375 private HttpWebResponse <response>5__2;
2376
2377 // Token: 0x04000CCA RID: 3274
2378 private WebException <throwMe>5__3;
2379
2380 // Token: 0x04000CCB RID: 3275
2381 private bool <redirect>5__4;
2382
2383 // Token: 0x04000CCC RID: 3276
2384 private bool <mustReadAll>5__5;
2385
2386 // Token: 0x04000CCD RID: 3277
2388
2389 // Token: 0x04000CCE RID: 3278
2390 private ConfiguredTaskAwaitable<global::System.Net.BufferOffsetSize>.ConfiguredTaskAwaiter <>u__2;
2391 }
2392
2393 // Token: 0x0200025C RID: 604
2395 [StructLayout(3)]
2397 {
2398 // Token: 0x06001038 RID: 4152 RVA: 0x00033520 File Offset: 0x00031720
2399 private void MoveNext()
2400 {
2402 }
2403
2404 // Token: 0x06001039 RID: 4153 RVA: 0x00033598 File Offset: 0x00031798
2409
2410 // Token: 0x04000CCF RID: 3279
2412
2413 // Token: 0x04000CD0 RID: 3280
2414 public AsyncTaskMethodBuilder<global::System.Net.BufferOffsetSize> <>t__builder;
2415
2416 // Token: 0x04000CD1 RID: 3281
2418
2419 // Token: 0x04000CD2 RID: 3282
2420 private MemoryStream <ms>5__2;
2421
2422 // Token: 0x04000CD3 RID: 3283
2424 }
2425 }
2426}
class f__AnonymousType0<< Count > j__TPar
ReadOnlyCollection< Exception > m_innerExceptions
Exception _innerException
Definition Exception.cs:418
static CultureInfo InvariantCulture
static string date2string(DateTime D)
static bool IsInvalidMethodOrHeaderString(string stringValue)
Task< global::System.Net.BufferOffsetSize >< GetRewriteHandler > b__271_0()
WebHeaderCollection webHeaders
global::System.Uri Address
void DoContinueDelegate(int statusCode, WebHeaderCollection headers)
override bool UseDefaultCredentials
override Stream GetRequestStream()
HttpWebRequest(global::System.Uri uri, Mono.Net.Security.MobileTlsProvider tlsProvider, [Optional] MonoTlsSettings settings)
WebException GetWebException(Exception e)
static int defaultMaximumErrorResponseLength
Stream GetRequestStream([Out] TransportContext context)
ValueTuple< bool, bool, Task< global::System.Net.BufferOffsetSize >, WebException > CheckFinalStatus(HttpWebResponse response)
override global::System.Uri RequestUri
override WebResponse EndGetResponse(IAsyncResult asyncResult)
static Task< T > RunWithTimeoutWorker< T >(Task< T > workerTask, int timeout, Action abort, Func< bool > aborted, CancellationTokenSource cts)
Task< Stream > MyGetRequestStreamAsync(CancellationToken cancellationToken)
HttpWebRequest.AuthorizationState proxy_auth_state
void AddRange(string rangeSpecifier, long range)
static WebException CreateRequestAbortedException()
Task< HttpWebResponse > MyGetResponseAsync(CancellationToken cancellationToken)
WebCompletionSource responseTask
virtual bool AllowWriteStreamBuffering
void AddRange(int from, int to)
static int DefaultMaximumResponseHeadersLength
global::System.Uri hostUri
static Task< T > RunWithTimeout< T >(Func< CancellationToken, Task< T > > func, int timeout, Action abort, Func< bool > aborted, CancellationToken cancellationToken)
override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
void AddRange(string rangeSpecifier, long from, long to)
void AddRange(string rangeSpecifier, int range)
void SetDateHeaderHelper(string headerName, DateTime dateTime)
virtual bool SupportsCookieContainer
Mono.Net.Security.MobileTlsProvider TlsProvider
static int DefaultMaximumErrorResponseLength
ValueTuple< WebOperation, bool > HandleNtlmAuth(WebResponseStream stream, HttpWebResponse response, global::System.Net.BufferOffsetSize writeBuffer, CancellationToken cancellationToken)
static StringBuilder GenerateConnectionGroup(string connectionGroupName, bool unsafeConnectionGroup, bool isInternalGroup)
HttpWebRequest(global::System.Uri uri)
override Task< Stream > GetRequestStreamAsync()
global::System.Security.Cryptography.X509Certificates.X509CertificateCollection certificates
override WebResponse GetResponse()
bool CheckAuthorization(WebResponse response, HttpStatusCode code)
static int defaultMaxResponseHeadersLength
global::System.Uri actualUri
override string ConnectionGroupName
global::System.Uri AuthUri
global::System.Net.Security.RemoteCertificateValidationCallback ServerCertificateValidationCallback
void AddRange(long from, long to)
Func< Stream, Task > ResendContentFactory
global::System.Uri requestUri
HttpWebRequest.AuthorizationState auth_state
global::System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates
void AddRange(string rangeSpecifier, int from, int to)
bool< ReuseConnection > k__BackingField
override Stream EndGetRequestStream(IAsyncResult asyncResult)
void SetSpecialHeaders(string HeaderName, string value)
ServerCertValidationCallback certValidationCallback
Stream EndGetRequestStream(IAsyncResult asyncResult, [Out] TransportContext context)
DecompressionMethods auto_decomp
override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
bool TryGetHostUri(string hostName, [Out] global::System.Uri hostUri)
WebOperation SendRequest(bool redirecting, global::System.Net.BufferOffsetSize writeBuffer, CancellationToken cancellationToken)
static Exception FlattenException(Exception e)
static Exception GetMustImplement()
HttpWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext)
CookieContainer cookieContainer
override ICredentials Credentials
bool< ThrowOnError > k__BackingField
static WebException GetWebException(Exception e, bool aborted)
override WebHeaderCollection Headers
override IWebProxy Proxy
ValueTuple< Task< global::System.Net.BufferOffsetSize >, WebException > GetRewriteHandler(HttpWebResponse response, bool redirect)
override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
static global::System.Net.Cache.RequestCachePolicy defaultCachePolicy
HttpContinueDelegate continueDelegate
Mono.Net.Security.MobileTlsProvider tlsProvider
virtual bool AllowReadStreamBuffering
HttpContinueDelegate ContinueDelegate
Task< ValueTuple< HttpWebResponse, bool, bool, global::System.Net.BufferOffsetSize, WebOperation > > GetResponseFromData(WebResponseStream stream, CancellationToken cancellationToken)
DecompressionMethods AutomaticDecompression
bool< RunWithTimeout > b__242_0< T >()
bool Redirect(HttpStatusCode code, WebResponse response)
readonly global::System.Net.Security.RemoteCertificateValidationCallback m_ValidationCallback
static ServicePoint FindServicePoint(global::System.Uri address)
static bool IsValidToken(string token)
void AddInternal(string name, string value)
void CheckUpdate(string name, string value)
void ChangeInternal(string name, string value)
static string CheckBadChars(string name, bool isHeaderValue)
void SetInternal(HttpResponseHeader header, string value)
Task< Stream > GetRequestStream()
static IWebProxy InternalDefaultWebProxy
static Encoding UTF8
Definition Encoding.cs:828
static int CompareExchange(int location1, int value, int comparand)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
static IAsyncResult Begin(Task task, AsyncCallback callback, object state)
Definition TaskToApm.cs:11
Uri(string uriString)
Definition Uri.cs:279
string PathAndQuery
Definition Uri.cs:725
bool IsDefaultPort
Definition Uri.cs:641
string Scheme
Definition Uri.cs:1094
readonly int _Minor
Definition Version.cs:392
readonly int _Major
Definition Version.cs:389
void GetObjectData(SerializationInfo info, StreamingContext context)
UriKind
Definition UriKind.cs:7
HttpWebRequest.NtlmAuthState ntlm_auth_state
AuthorizationState(HttpWebRequest request, bool isProxy)
bool CheckAuthorization(WebResponse response, HttpStatusCode code)
AsyncTaskMethodBuilder< T ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable< bool >.ConfiguredTaskAwaiter u__1
TaskAwaiter< WebResponseStream ><> u__3
ConfiguredTaskAwaitable< WebRequestStream >.ConfiguredTaskAwaiter u__1
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__2
AsyncTaskMethodBuilder< HttpWebResponse ><> t__builder
ConfiguredTaskAwaitable< global::System.Net.BufferOffsetSize >.ConfiguredTaskAwaiter u__2
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
AsyncTaskMethodBuilder< global::System.Net.BufferOffsetSize ><> t__builder
void SetStateMachine(IAsyncStateMachine stateMachine)
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1