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
FtpWebRequest.cs
Go to the documentation of this file.
1using System;
3using System.IO;
12using Cpp2IlInjected;
13
14namespace System.Net
15{
16 // Token: 0x02000151 RID: 337
17 public sealed class FtpWebRequest : WebRequest
18 {
19 // Token: 0x170001BB RID: 443
20 // (get) Token: 0x06000848 RID: 2120 RVA: 0x0001CF34 File Offset: 0x0001B134
22 {
23 get
24 {
25 return this._methodInfo;
26 }
27 }
28
29 // Token: 0x170001BC RID: 444
30 // (get) Token: 0x06000849 RID: 2121 RVA: 0x0001CF48 File Offset: 0x0001B148
31 // (set) Token: 0x0600084A RID: 2122 RVA: 0x0001CF60 File Offset: 0x0001B160
32 public new static global::System.Net.Cache.RequestCachePolicy DefaultCachePolicy
33 {
34 get
35 {
36 if (!true)
37 {
38 }
40 }
41 set
42 {
43 }
44 }
45
46 // Token: 0x170001BD RID: 445
47 // (get) Token: 0x0600084B RID: 2123 RVA: 0x00002050 File Offset: 0x00000250
48 // (set) Token: 0x0600084C RID: 2124 RVA: 0x0001CF70 File Offset: 0x0001B170
49 public override string Method
50 {
51 get
52 {
53 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55 set
56 {
57 bool flag = string.IsNullOrEmpty(value);
59 {
62 return;
63 }
64 }
65 }
66
67 // Token: 0x170001BE RID: 446
68 // (get) Token: 0x0600084D RID: 2125 RVA: 0x0001CFA8 File Offset: 0x0001B1A8
69 // (set) Token: 0x0600084E RID: 2126 RVA: 0x0001CFBC File Offset: 0x0001B1BC
70 public string RenameTo
71 {
72 get
73 {
74 return this._renameTo;
75 }
76 set
77 {
79 {
80 bool flag = string.IsNullOrEmpty(value);
82 return;
83 }
84 }
85 }
86
87 // Token: 0x170001BF RID: 447
88 // (get) Token: 0x0600084F RID: 2127 RVA: 0x0001CFE8 File Offset: 0x0001B1E8
89 // (set) Token: 0x06000850 RID: 2128 RVA: 0x0001CFFC File Offset: 0x0001B1FC
90 public override ICredentials Credentials
91 {
92 get
93 {
94 return this._authInfo;
95 }
96 set
97 {
99 {
100 return;
101 }
102 if (value != null)
103 {
104 if (!true)
105 {
106 }
108 return;
109 }
110 }
111 }
112
113 // Token: 0x170001C0 RID: 448
114 // (get) Token: 0x06000851 RID: 2129 RVA: 0x0001D028 File Offset: 0x0001B228
115 public override global::System.Uri RequestUri
116 {
117 get
118 {
119 return this._uri;
120 }
121 }
122
123 // Token: 0x170001C1 RID: 449
124 // (get) Token: 0x06000852 RID: 2130 RVA: 0x0001D03C File Offset: 0x0001B23C
125 // (set) Token: 0x06000853 RID: 2131 RVA: 0x0001D050 File Offset: 0x0001B250
126 public override int Timeout
127 {
128 get
129 {
130 return this._timeout;
131 }
132 set
133 {
135 {
136 int timeout = this._timeout;
138 return;
139 }
140 }
141 }
142
143 // Token: 0x170001C2 RID: 450
144 // (get) Token: 0x06000854 RID: 2132 RVA: 0x0001D07C File Offset: 0x0001B27C
145 internal int RemainingTimeout
146 {
147 get
148 {
149 return this._remainingTimeout;
150 }
151 }
152
153 // Token: 0x170001C3 RID: 451
154 // (get) Token: 0x06000855 RID: 2133 RVA: 0x0001D090 File Offset: 0x0001B290
155 // (set) Token: 0x06000856 RID: 2134 RVA: 0x0001D0A4 File Offset: 0x0001B2A4
157 {
158 get
159 {
160 return this._readWriteTimeout;
161 }
162 set
163 {
164 if (!this._getResponseStarted)
165 {
167 return;
168 }
169 }
170 }
171
172 // Token: 0x170001C4 RID: 452
173 // (get) Token: 0x06000857 RID: 2135 RVA: 0x0001D0C4 File Offset: 0x0001B2C4
174 // (set) Token: 0x06000858 RID: 2136 RVA: 0x0001D0D8 File Offset: 0x0001B2D8
175 public long ContentOffset
176 {
177 get
178 {
179 return this._contentOffset;
180 }
181 set
182 {
184 {
186 return;
187 }
188 }
189 }
190
191 // Token: 0x170001C5 RID: 453
192 // (get) Token: 0x06000859 RID: 2137 RVA: 0x0001D100 File Offset: 0x0001B300
193 // (set) Token: 0x0600085A RID: 2138 RVA: 0x0001D114 File Offset: 0x0001B314
194 public override long ContentLength
195 {
196 get
197 {
198 return this._contentLength;
199 }
200 set
201 {
203 }
204 }
205
206 // Token: 0x170001C6 RID: 454
207 // (get) Token: 0x0600085B RID: 2139 RVA: 0x0001D128 File Offset: 0x0001B328
208 // (set) Token: 0x0600085C RID: 2140 RVA: 0x0001D138 File Offset: 0x0001B338
209 public override IWebProxy Proxy
210 {
211 get
212 {
213 }
214 set
215 {
217 {
218 }
219 }
220 }
221
222 // Token: 0x170001C7 RID: 455
223 // (get) Token: 0x0600085D RID: 2141 RVA: 0x0001D158 File Offset: 0x0001B358
224 // (set) Token: 0x0600085E RID: 2142 RVA: 0x0001D16C File Offset: 0x0001B36C
225 public override string ConnectionGroupName
226 {
227 get
228 {
229 return this._connectionGroupName;
230 }
231 set
232 {
234 {
235 }
237 }
238 }
239
240 // Token: 0x170001C8 RID: 456
241 // (get) Token: 0x0600085F RID: 2143 RVA: 0x0001D190 File Offset: 0x0001B390
243 {
244 get
245 {
246 ServicePoint servicePoint;
247 if (this._servicePoint == null)
248 {
249 global::System.Uri uri = this._uri;
250 this._servicePoint = servicePoint;
251 }
252 return servicePoint;
253 }
254 }
255
256 // Token: 0x170001C9 RID: 457
257 // (get) Token: 0x06000860 RID: 2144 RVA: 0x0001D1B4 File Offset: 0x0001B3B4
258 internal bool Aborted
259 {
260 get
261 {
262 return this._aborted;
263 }
264 }
265
266 // Token: 0x06000861 RID: 2145 RVA: 0x0001D1C8 File Offset: 0x0001B3C8
267 internal FtpWebRequest(global::System.Uri uri)
268 {
269 int num = 34464;
270 int num2 = 257;
271 this._timeout = num;
272 this._passive = num2 != 0;
273 if (num == 0)
274 {
275 }
276 int num3 = 37856;
278 this._timerQueue = num;
279 if (num == 0)
280 {
281 }
282 base..ctor();
283 if (num == 0)
284 {
285 }
287 if (num == 0)
288 {
289 }
290 NetEventSource.Info(this, uri, ".ctor");
291 if (num3 == 0)
292 {
293 }
294 this._uri = uri;
296 global::System.Uri uri2 = this._uri;
298 int stringLength;
299 if (uri2.UserInfo != null && this._uri.UserInfo._stringLength != 0)
300 {
301 string userInfo = this._uri.UserInfo;
302 int num4 = 58;
303 int num5 = userInfo.IndexOf((char)num4);
304 long num6 = 0L;
305 string text = userInfo.Substring((int)num6, num5);
306 if (num3 == 0)
307 {
308 }
309 long num7 = 0L;
310 string text2 = global::System.Uri.UnescapeDataString(text);
311 stringLength = userInfo._stringLength;
312 string text3 = global::System.Uri.UnescapeDataString(userInfo.Substring((int)num7, num5));
313 }
314 if (stringLength == 0)
315 {
316 }
317 }
318
319 // Token: 0x06000862 RID: 2146 RVA: 0x0001D2C8 File Offset: 0x0001B4C8
320 public override WebResponse GetResponse()
321 {
322 int num = 1;
323 if (num == 0)
324 {
325 }
327 if (num == 0)
328 {
329 }
331 if (num == 0)
332 {
333 }
334 if (num == 0)
335 {
336 }
338 string method = this._methodInfo.Method;
339 if (method != null && method == null)
340 {
341 throw new ArrayTypeMismatchException();
342 }
343 if (!true)
344 {
345 }
350 long num2 = 32752L;
352 int num3 = 1;
355 long num4 = 0L;
356 int num5 = 15;
357 if (num4 == 0L)
358 {
359 if (num5 == 0)
360 {
361 object obj;
362 if (obj != null)
363 {
364 }
365 long num6 = 0L;
366 int num7 = 19;
368 if (num2 == 0L)
369 {
370 }
371 if (num6 == 0L)
372 {
373 if (num7 == 0)
374 {
375 }
376 }
377 }
378 throw new OutOfMemoryException();
379 }
380 throw new OutOfMemoryException();
381 }
382
383 // Token: 0x06000863 RID: 2147 RVA: 0x0001D3F0 File Offset: 0x0001B5F0
384 public override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
385 {
386 int num = 1;
387 if (num == 0)
388 {
389 }
391 if (num == 0)
392 {
393 }
394 string method = this._methodInfo.Method;
395 if (method == null || method != null)
396 {
398 NetEventSource.Info(this, formattableString, "BeginGetResponse");
399 if (this._ftpWebResponse != null)
400 {
402 }
403 if (!this._getResponseStarted)
404 {
406 int num2 = 1;
407 this._getResponseStarted = num2 != 0;
408 if (exception != null)
409 {
411 }
412 long num3 = 0L;
413 object syncObject = this._syncObject;
414 Monitor.Enter(syncObject, num3 != 0L);
416 long num4 = 0L;
417 int num5 = 10;
418 if (requestStage != FtpWebRequest.RequestStage.CheckForError)
419 {
420 Monitor.Exit(syncObject);
421 }
422 if (num4 == 0L)
423 {
424 int num10;
425 if (num5 == 0)
426 {
428 if (readAsyncResult != null)
429 {
430 }
432 readAsyncResult.InvokeCallback();
433 long num6 = 0L;
434 object obj;
435 Monitor.Enter(obj, num6 != 0L);
436 int num7 = 1;
437 this.SubmitRequest(num7 != 0);
438 long num8 = 0L;
439 int num9 = 13;
440 Monitor.Exit(syncObject);
441 if (num8 != 0L)
442 {
443 throw new OutOfMemoryException();
444 }
445 if (num9 == 0)
446 {
447 num10 = 14;
448 }
449 }
450 long num11 = 0L;
452 if (num11 != 0L || num10 == 0)
453 {
454 }
455 throw new OutOfMemoryException();
456 }
457 throw new OutOfMemoryException();
458 }
459 }
460 throw new ArrayTypeMismatchException();
461 }
462
463 // Token: 0x06000864 RID: 2148 RVA: 0x0001D584 File Offset: 0x0001B784
464 public override WebResponse EndGetResponse(IAsyncResult asyncResult)
465 {
466 int num = 1;
467 if (num == 0)
468 {
469 }
471 if (num == 0)
472 {
473 }
474 if (asyncResult != null)
475 {
476 int num2 = 1;
478 if (exception != null)
479 {
481 }
482 long num3 = 0L;
483 int num4 = 12;
484 if (num2 == 0)
485 {
486 }
488 if (num2 == 0)
489 {
490 }
491 if (num3 != 0L)
492 {
493 goto IL_0063;
494 }
495 if (num4 == 0)
496 {
498 }
499 }
500 string text = SR.Format("{0} can only be called once for each asynchronous operation.", "EndGetResponse");
501 IL_0063:
502 throw new OutOfMemoryException();
503 }
504
505 // Token: 0x06000865 RID: 2149 RVA: 0x0001D61C File Offset: 0x0001B81C
506 public override Stream GetRequestStream()
507 {
508 int num6;
509 do
510 {
511 int num = 1;
512 if (num == 0)
513 {
514 }
516 if (num == 0)
517 {
518 }
519 string method = this._methodInfo.Method;
520 if (method != null && method == null)
521 {
522 goto IL_0138;
523 }
525 NetEventSource.Info(this, formattableString, "GetRequestStream");
527 {
528 goto IL_0128;
529 }
531 int num2 = 1;
533 FtpMethodFlags flags = methodInfo.Flags;
535 if (exception != null)
536 {
538 }
539 if (flags == FtpMethodFlags.None)
540 {
541 }
547 double totalMilliseconds = (utcNow2 - startTime).TotalMilliseconds;
548 int num3 = 32768;
550 long num4 = 0L;
551 this.SubmitRequest(num4 != 0L);
553 if (exception2 != null)
554 {
556 }
557 Stream stream = this._stream;
558 Stream stream2 = this._stream;
559 int readWriteTimeout = this._readWriteTimeout;
560 Stream stream3 = this._stream;
562 long num5 = 0L;
563 num6 = 13;
565 if (num5 != 0L)
566 {
567 goto IL_0128;
568 }
569 }
570 while (num6 != 0);
571 return this._stream;
572 IL_0128:
573 throw new OutOfMemoryException();
574 IL_0138:
575 throw new ArrayTypeMismatchException();
576 }
577
578 // Token: 0x06000866 RID: 2150 RVA: 0x0001D790 File Offset: 0x0001B990
579 public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
580 {
581 int num = 1;
582 if (num == 0)
583 {
584 }
586 if (num == 0)
587 {
588 }
589 string method = this._methodInfo.Method;
590 if (method == null || method != null)
591 {
593 NetEventSource.Info(this, formattableString, "BeginGetRequestStream");
594 if (!this._getRequestStreamStarted)
595 {
597 int num2 = 1;
599 FtpMethodFlags flags = methodInfo.Flags;
601 if (exception != null)
602 {
604 }
605 long num3 = 0L;
606 object obj;
607 Monitor.Enter(obj, num3 != 0L);
608 int num4 = 1;
609 this.SubmitRequest(num4 != 0);
610 long num5 = 0L;
611 int num6 = 9;
613 if (num5 != 0L)
614 {
615 throw new OutOfMemoryException();
616 }
617 if (num6 == 0)
618 {
619 }
620 long num7 = 0L;
622 if (num7 == 0L)
623 {
624 }
625 }
626 throw new OutOfMemoryException();
627 }
628 throw new ArrayTypeMismatchException();
629 }
630
631 // Token: 0x06000867 RID: 2151 RVA: 0x0001D8B0 File Offset: 0x0001BAB0
632 public override Stream EndGetRequestStream(IAsyncResult asyncResult)
633 {
634 int num = 1;
635 if (num == 0)
636 {
637 }
639 if (num == 0)
640 {
641 }
642 if (asyncResult != null)
643 {
645 if (exception != null)
646 {
648 }
649 Stream stream = this._stream;
650 int readWriteTimeout = this._readWriteTimeout;
652 long num2 = 0L;
654 if (num2 == 0L)
655 {
656 return stream;
657 }
658 }
659 else
660 {
661 string text = SR.Format("{0} can only be called once for each asynchronous operation.", "EndGetResponse");
662 }
663 throw new OutOfMemoryException();
664 }
665
666 // Token: 0x06000868 RID: 2152 RVA: 0x0001D94C File Offset: 0x0001BB4C
667 private void SubmitRequest(bool isAsync)
668 {
669 if (this._connection != null)
670 {
671 return;
672 }
677 double totalMilliseconds = (utcNow - startTime).TotalMilliseconds;
679 NetEventSource.Info(this, "Request being submitted", "SubmitRequest");
680 global::System.Net.Sockets.NetworkStream networkStream = ftpControlStream._networkStream;
682 global::System.Net.Sockets.NetworkStream networkStream2 = ftpControlStream._networkStream;
683 Stream stream = this.TimedSubmitRequestHelper(remainingTimeout != 0);
684 }
685
686 // Token: 0x06000869 RID: 2153 RVA: 0x0001DA40 File Offset: 0x0001BC40
688 {
689 while (e == null)
690 {
691 }
692 }
693
694 // Token: 0x0600086A RID: 2154 RVA: 0x0001DA58 File Offset: 0x0001BC58
699
700 // Token: 0x0600086B RID: 2155 RVA: 0x0001DA70 File Offset: 0x0001BC70
702 {
703 /*
704An exception occurred when decompiling this method (0600086B)
705
706ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.FtpControlStream System.Net.FtpWebRequest::CreateConnection()
707
708 ---> System.Exception: Basic block has to end with unconditional control flow.
709{
710 Block_0:
711 stloc:string(var_0_0B, callgetter:string(Uri::get_Host, ldfld:Uri(FtpWebRequest::_uri, ldloc:FtpWebRequest(this))))
712 stloc:int32(var_1_17, callgetter:int32(Uri::get_Port, ldfld:Uri(FtpWebRequest::_uri, ldloc:FtpWebRequest(this))))
713}
714
715 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
716 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
717 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
718 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
719 --- End of inner exception stack trace ---
720 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
721 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
722*/;
723 }
724
725 // Token: 0x0600086C RID: 2156 RVA: 0x0001DA98 File Offset: 0x0001BC98
727 {
728 if (this._requestCompleteAsyncResult == null)
729 {
730 }
732 int num = 1;
733 int num2 = 1;
734 return connection.SubmitRequest(this, num != 0, num2 != 0);
735 }
736
737 // Token: 0x0600086D RID: 2157 RVA: 0x0001DB70 File Offset: 0x0001BD70
738 private void TimerCallback(TimerThread.Timer timer, int timeNoticed, object context)
739 {
740 if (!true)
741 {
742 }
744 if (!true)
745 {
746 }
748 if (connection != null)
749 {
750 if (!true)
751 {
752 }
754 if (!true)
755 {
756 }
757 NetEventSource.Info(this, "aborting connection", "TimerCallback");
758 connection.AbortConnect();
759 return;
760 }
761 }
762
763 // Token: 0x170001CA RID: 458
764 // (get) Token: 0x0600086E RID: 2158 RVA: 0x0001DBBC File Offset: 0x0001BDBC
766 {
767 get
768 {
770 if (this._timerQueue == null)
771 {
772 orCreateQueue = TimerThread.GetOrCreateQueue(this._remainingTimeout);
774 }
775 return orCreateQueue;
776 }
777 }
778
779 // Token: 0x0600086F RID: 2159 RVA: 0x0001DBE8 File Offset: 0x0001BDE8
781 {
783 do
784 {
785 if (e != null)
786 {
787 }
788 if (this._onceFailed || this._aborted || this._timedOut)
789 {
790 }
791 connection = this._connection;
792 while (connection == null)
793 {
794 }
795 }
796 while (!connection._recoverableFailure);
797 object syncObject = this._syncObject;
798 int num = 1;
799 this._onceFailed = num != 0;
801 long num2;
802 if (connection2 != null)
803 {
804 global::System.Net.Sockets.NetworkStream networkStream = connection2._networkStream;
805 connection2._client.Dispose();
808 if (connection3 != null && connection3 == null)
809 {
810 throw new ArrayTypeMismatchException();
811 }
812 if ("Releasing connection: {0}" == null)
813 {
814 }
816 NetEventSource.Info(this, formattableString, "AttemptedRecovery");
817 num2 = 0L;
818 }
819 if ("AttemptedRecovery" != null)
820 {
821 Monitor.Exit(syncObject);
822 }
823 if (num2 == 0L)
824 {
825 }
826 throw new OutOfMemoryException();
827 }
828
829 // Token: 0x06000870 RID: 2160 RVA: 0x0001DCC8 File Offset: 0x0001BEC8
831 {
832 int num = 1;
833 if (num == 0)
834 {
835 }
837 if (num == 0)
838 {
839 }
840 if (exception != null)
841 {
842 }
843 if (this._exception == null)
844 {
846 if (exception != null)
847 {
848 }
849 if (connection != null && connection.StatusCode != FtpStatusCode.Undefined)
850 {
852 string text = SR.Format("The remote server returned an error: {0}.", statusLine);
854 return;
855 }
856 if (connection == null)
857 {
858 return;
859 }
861 if (ftpWebResponse2 != null)
862 {
864 string statusLine2 = connection.StatusLine;
865 string exitMessage = connection.ExitMessage;
866 ftpWebResponse2._statusCode = statusCode;
869 }
870 }
871 }
872
873 // Token: 0x06000871 RID: 2161 RVA: 0x0001DD90 File Offset: 0x0001BF90
874 private void CheckError()
875 {
877 if (exception != null)
878 {
880 return;
881 }
882 }
883
884 // Token: 0x06000872 RID: 2162 RVA: 0x0001DDB0 File Offset: 0x0001BFB0
885 internal void RequestCallback(object obj)
886 {
887 if (this._async)
888 {
889 this.AsyncRequestCallback(obj);
890 return;
891 }
892 this.SyncRequestCallback(obj);
893 }
894
895 // Token: 0x06000873 RID: 2163 RVA: 0x0001DDD4 File Offset: 0x0001BFD4
896 private void SyncRequestCallback(object obj)
897 {
898 int num = 1;
899 if (num == 0)
900 {
901 }
903 if (num == 0)
904 {
905 }
906 NetEventSource.Enter(this, obj, "SyncRequestCallback");
907 if (obj != null)
908 {
909 }
910 }
911
912 // Token: 0x06000874 RID: 2164 RVA: 0x0001DE4C File Offset: 0x0001C04C
913 private void AsyncRequestCallback(object obj)
914 {
915 int num = 1;
916 if (num == 0)
917 {
918 }
920 if (num == 0)
921 {
922 }
923 NetEventSource.Enter(this, obj, "AsyncRequestCallback");
924 if (obj != null)
925 {
926 return;
927 }
928 }
929
930 // Token: 0x06000875 RID: 2165 RVA: 0x0001E0F8 File Offset: 0x0001C2F8
932 {
933 if (!true)
934 {
935 }
937 long num = 0L;
938 long num2 = 0L;
939 if (num == 0L)
940 {
941 if (5 == 0)
942 {
943 if (num2 != 0L)
944 {
945 }
946 if (13 == 0)
947 {
948 }
949 }
950 return FtpWebRequest.RequestStage.ReleaseConnection;
951 }
952 throw new OutOfMemoryException();
953 }
954
955 // Token: 0x06000876 RID: 2166 RVA: 0x0001E150 File Offset: 0x0001C350
956 public override void Abort()
957 {
958 bool aborted = this._aborted;
959 if (!aborted)
960 {
961 if (!aborted)
962 {
963 }
965 if (!aborted)
966 {
967 }
968 long num = 0L;
969 object syncObject = this._syncObject;
970 Monitor.Enter(syncObject, num != 0L);
973 Stream stream = this._stream;
974 int num2 = 1;
975 this._aborted = num2 != 0;
978 return;
979 }
980 }
981
982 // Token: 0x170001CB RID: 459
983 // (get) Token: 0x06000877 RID: 2167 RVA: 0x0001E294 File Offset: 0x0001C494
984 // (set) Token: 0x06000878 RID: 2168 RVA: 0x0001E2A4 File Offset: 0x0001C4A4
985 public bool KeepAlive
986 {
987 get
988 {
989 return true;
990 }
991 set
992 {
994 {
995 }
996 }
997 }
998
999 // Token: 0x170001CC RID: 460
1000 // (get) Token: 0x06000879 RID: 2169 RVA: 0x0001E2C4 File Offset: 0x0001C4C4
1001 // (set) Token: 0x0600087A RID: 2170 RVA: 0x0001E2DC File Offset: 0x0001C4DC
1002 public override global::System.Net.Cache.RequestCachePolicy CachePolicy
1003 {
1004 get
1005 {
1006 if (!true)
1007 {
1008 }
1010 }
1011 set
1012 {
1014 {
1015 }
1016 }
1017 }
1018
1019 // Token: 0x170001CD RID: 461
1020 // (get) Token: 0x0600087B RID: 2171 RVA: 0x0001E2FC File Offset: 0x0001C4FC
1021 // (set) Token: 0x0600087C RID: 2172 RVA: 0x0001E310 File Offset: 0x0001C510
1022 public bool UseBinary
1023 {
1024 get
1025 {
1026 return this._binary;
1027 }
1028 set
1029 {
1030 bool getResponseStarted;
1031 for (;;)
1032 {
1033 if (!this._getRequestStreamStarted)
1034 {
1035 getResponseStarted = this._getResponseStarted;
1036 if (!getResponseStarted)
1037 {
1038 break;
1039 }
1040 }
1041 }
1043 }
1044 }
1045
1046 // Token: 0x170001CE RID: 462
1047 // (get) Token: 0x0600087D RID: 2173 RVA: 0x0001E338 File Offset: 0x0001C538
1048 // (set) Token: 0x0600087E RID: 2174 RVA: 0x0001E34C File Offset: 0x0001C54C
1049 public bool UsePassive
1050 {
1051 get
1052 {
1053 return this._passive;
1054 }
1055 set
1056 {
1057 bool getResponseStarted;
1058 do
1059 {
1060 getResponseStarted = this._getResponseStarted;
1061 }
1062 while (getResponseStarted);
1064 }
1065 }
1066
1067 // Token: 0x170001CF RID: 463
1068 // (get) Token: 0x0600087F RID: 2175 RVA: 0x0001E36C File Offset: 0x0001C56C
1069 // (set) Token: 0x06000880 RID: 2176 RVA: 0x0001E384 File Offset: 0x0001C584
1070 public global::System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates
1071 {
1072 get
1073 {
1074 int num = 1;
1075 if (num == 0)
1076 {
1077 }
1078 if (num == 0)
1079 {
1080 }
1081 global::System.Security.Cryptography.X509Certificates.X509CertificateCollection x509CertificateCollection;
1083 }
1084 set
1085 {
1086 while (value == null)
1087 {
1088 }
1090 }
1091 }
1092
1093 // Token: 0x170001D0 RID: 464
1094 // (get) Token: 0x06000881 RID: 2177 RVA: 0x0001E39C File Offset: 0x0001C59C
1095 // (set) Token: 0x06000882 RID: 2178 RVA: 0x0001E3B0 File Offset: 0x0001C5B0
1096 public bool EnableSsl
1097 {
1098 get
1099 {
1100 return this._enableSsl;
1101 }
1102 set
1103 {
1104 bool getResponseStarted;
1105 for (;;)
1106 {
1107 if (!this._getRequestStreamStarted)
1108 {
1109 getResponseStarted = this._getResponseStarted;
1110 if (!getResponseStarted)
1111 {
1112 break;
1113 }
1114 }
1115 }
1117 }
1118 }
1119
1120 // Token: 0x170001D1 RID: 465
1121 // (get) Token: 0x06000883 RID: 2179 RVA: 0x0001E3D8 File Offset: 0x0001C5D8
1122 // (set) Token: 0x06000884 RID: 2180 RVA: 0x0001E3EC File Offset: 0x0001C5EC
1124 {
1125 get
1126 {
1127 /*
1128An exception occurred when decompiling this method (06000883)
1129
1130ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.WebHeaderCollection System.Net.FtpWebRequest::get_Headers()
1131
1132 ---> System.Exception: Basic block has to end with unconditional control flow.
1133{
1134 IL_0000:
1135 brtrue(IL_0000, ldfld:WebHeaderCollection[exp:bool](FtpWebRequest::_ftpRequestHeaders, ldloc:FtpWebRequest(this)))
1136}
1137
1138 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
1139 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
1140 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
1141 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
1142 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
1143 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
1144 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
1145 --- End of inner exception stack trace ---
1146 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
1147 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
1148*/;
1149 }
1150 set
1151 {
1153 }
1154 }
1155
1156 // Token: 0x170001D2 RID: 466
1157 // (get) Token: 0x06000885 RID: 2181 RVA: 0x0001E400 File Offset: 0x0001C600
1158 // (set) Token: 0x06000886 RID: 2182 RVA: 0x0001E414 File Offset: 0x0001C614
1159 public override string ContentType
1160 {
1161 get
1162 {
1163 /*
1164An exception occurred when decompiling this method (06000885)
1165
1166ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpWebRequest::get_ContentType()
1167
1168 ---> System.Exception: Basic block has to end with unconditional control flow.
1169{
1170 Block_0:
1171 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1172}
1173
1174 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
1175 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
1176 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
1177 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
1178 --- End of inner exception stack trace ---
1179 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
1180 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
1181*/;
1182 }
1183 set
1184 {
1185 /*
1186An exception occurred when decompiling this method (06000886)
1187
1188ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.FtpWebRequest::set_ContentType(System.String)
1189
1190 ---> System.Exception: Basic block has to end with unconditional control flow.
1191{
1192 Block_0:
1193 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1194}
1195
1196 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
1197 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
1198 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
1199 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
1200 --- End of inner exception stack trace ---
1201 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
1202 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
1203*/;
1204 }
1205 }
1206
1207 // Token: 0x170001D3 RID: 467
1208 // (get) Token: 0x06000887 RID: 2183 RVA: 0x0001E428 File Offset: 0x0001C628
1209 // (set) Token: 0x06000888 RID: 2184 RVA: 0x0001E43C File Offset: 0x0001C63C
1210 public override bool UseDefaultCredentials
1211 {
1212 get
1213 {
1214 /*
1215An exception occurred when decompiling this method (06000887)
1216
1217ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.FtpWebRequest::get_UseDefaultCredentials()
1218
1219 ---> System.Exception: Basic block has to end with unconditional control flow.
1220{
1221 Block_0:
1222 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1223}
1224
1225 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
1226 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
1227 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
1228 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
1229 --- End of inner exception stack trace ---
1230 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
1231 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
1232*/;
1233 }
1234 set
1235 {
1236 /*
1237An exception occurred when decompiling this method (06000888)
1238
1239ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.FtpWebRequest::set_UseDefaultCredentials(System.Boolean)
1240
1241 ---> System.Exception: Basic block has to end with unconditional control flow.
1242{
1243 Block_0:
1244 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1245}
1246
1247 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
1248 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
1249 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
1250 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
1251 --- End of inner exception stack trace ---
1252 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
1253 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
1254*/;
1255 }
1256 }
1257
1258 // Token: 0x170001D4 RID: 468
1259 // (get) Token: 0x06000889 RID: 2185 RVA: 0x0001E450 File Offset: 0x0001C650
1260 // (set) Token: 0x0600088A RID: 2186 RVA: 0x0001E464 File Offset: 0x0001C664
1261 public override bool PreAuthenticate
1262 {
1263 get
1264 {
1265 /*
1266An exception occurred when decompiling this method (06000889)
1267
1268ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.FtpWebRequest::get_PreAuthenticate()
1269
1270 ---> System.Exception: Basic block has to end with unconditional control flow.
1271{
1272 Block_0:
1273 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1274}
1275
1276 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
1277 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
1278 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
1279 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
1280 --- End of inner exception stack trace ---
1281 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
1282 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
1283*/;
1284 }
1285 set
1286 {
1287 /*
1288An exception occurred when decompiling this method (0600088A)
1289
1290ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.FtpWebRequest::set_PreAuthenticate(System.Boolean)
1291
1292 ---> System.Exception: Basic block has to end with unconditional control flow.
1293{
1294 Block_0:
1295 stloc:NotSupportedException(var_1_07, callgetter:NotSupportedException(ExceptionHelper::get_PropertyNotSupportedException))
1296}
1297
1298 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
1299 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
1300 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
1301 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
1302 --- End of inner exception stack trace ---
1303 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
1304 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
1305*/;
1306 }
1307 }
1308
1309 // Token: 0x170001D5 RID: 469
1310 // (get) Token: 0x0600088B RID: 2187 RVA: 0x0001E478 File Offset: 0x0001C678
1311 private bool InUse
1312 {
1313 get
1314 {
1315 return !this._getRequestStreamStarted || true;
1316 }
1317 }
1318
1319 // Token: 0x0600088C RID: 2188 RVA: 0x0001E490 File Offset: 0x0001C690
1321 {
1323 long contentLength;
1324 if (ftpWebResponse == null || (ftpWebResponse != null && this._stream != null))
1325 {
1326 object syncObject = this._syncObject;
1328 Stream stream;
1329 if (ftpWebResponse2 != null)
1330 {
1331 if (ftpWebResponse2 == null)
1332 {
1333 goto IL_0090;
1334 }
1335 if (ftpWebResponse2 == null)
1336 {
1337 return;
1338 }
1339 }
1340 else
1341 {
1342 stream = this._stream;
1343 }
1344 FtpMethodFlags flags = this._methodInfo.Flags;
1345 if (stream != null)
1346 {
1347 Stream stream2 = this._stream;
1348 Stream stream3 = this._stream;
1349 int readWriteTimeout = this._readWriteTimeout;
1350 Stream stream4 = this._stream;
1352 }
1354 if (connection != null)
1355 {
1356 contentLength = connection._contentLength;
1357 return;
1358 }
1359 if (this._ftpWebResponse == null)
1360 {
1361 if (connection != null)
1362 {
1363 global::System.Uri responseUri = connection._responseUri;
1364 FtpStatusCode statusCode = connection.StatusCode;
1365 string statusLine = connection.StatusLine;
1366 DateTime lastModified = connection._lastModified;
1367 string bannerMessage = connection.BannerMessage;
1368 string welcomeMessage = connection.WelcomeMessage;
1369 string exitMessage = connection.ExitMessage;
1370 return;
1371 }
1372 global::System.Uri uri = this._uri;
1374 return;
1375 }
1376 IL_0090:
1377 long num = 0L;
1378 if (contentLength != 0L)
1379 {
1380 Monitor.Exit(syncObject);
1381 }
1382 if (num != 0L)
1383 {
1384 throw new OutOfMemoryException();
1385 }
1386 if (3 != 0)
1387 {
1388 return;
1389 }
1390 }
1391 if (contentLength == 0L)
1392 {
1393 }
1396 if (ftpWebResponse3 == null || ftpWebResponse3 != null)
1397 {
1398 Stream responseStream = this._ftpWebResponse._responseStream;
1399 if (responseStream == null || responseStream != null)
1400 {
1402 NetEventSource.Info(this, formattableString, "EnsureFtpWebResponse");
1403 return;
1404 }
1405 }
1406 throw new ArrayTypeMismatchException();
1407 }
1408
1409 // Token: 0x0600088D RID: 2189 RVA: 0x0001E610 File Offset: 0x0001C810
1411 {
1413 if (this._async)
1414 {
1417 if (exception != null)
1418 {
1420 return;
1421 }
1422 }
1423 else if (ftpControlStream._lastModified != null)
1424 {
1425 return;
1426 }
1427 }
1428
1429 // Token: 0x0600088E RID: 2190 RVA: 0x0001E660 File Offset: 0x0001C860
1430 // Note: this type is marked as 'beforefieldinit'.
1435
1436 // Token: 0x0600088F RID: 2191 RVA: 0x0001E678 File Offset: 0x0001C878
1437 internal FtpWebRequest()
1438 {
1439 throw new NotSupportedException();
1440 }
1441
1442 // Token: 0x040006BD RID: 1725
1443 private object _syncObject;
1444
1445 // Token: 0x040006BE RID: 1726
1447
1448 // Token: 0x040006BF RID: 1727
1449 private readonly global::System.Uri _uri;
1450
1451 // Token: 0x040006C0 RID: 1728
1453
1454 // Token: 0x040006C1 RID: 1729
1455 private string _renameTo;
1456
1457 // Token: 0x040006C2 RID: 1730
1459
1460 // Token: 0x040006C3 RID: 1731
1462
1463 // Token: 0x040006C4 RID: 1732
1465
1466 // Token: 0x040006C5 RID: 1733
1467 private int _timeout;
1468
1469 // Token: 0x040006C6 RID: 1734
1471
1472 // Token: 0x040006C7 RID: 1735
1473 private long _contentLength;
1474
1475 // Token: 0x040006C8 RID: 1736
1476 private long _contentOffset;
1477
1478 // Token: 0x040006C9 RID: 1737
1479 private global::System.Security.Cryptography.X509Certificates.X509CertificateCollection _clientCertificates;
1480
1481 // Token: 0x040006CA RID: 1738
1482 private bool _passive;
1483
1484 // Token: 0x040006CB RID: 1739
1485 private bool _binary;
1486
1487 // Token: 0x040006CC RID: 1740
1488 private string _connectionGroupName;
1489
1490 // Token: 0x040006CD RID: 1741
1492
1493 // Token: 0x040006CE RID: 1742
1494 private bool _async;
1495
1496 // Token: 0x040006CF RID: 1743
1497 private bool _aborted;
1498
1499 // Token: 0x040006D0 RID: 1744
1500 private bool _timedOut;
1501
1502 // Token: 0x040006D1 RID: 1745
1504
1505 // Token: 0x040006D2 RID: 1746
1507
1508 // Token: 0x040006D3 RID: 1747
1510
1511 // Token: 0x040006D4 RID: 1748
1512 private bool _enableSsl;
1513
1514 // Token: 0x040006D5 RID: 1749
1516
1517 // Token: 0x040006D6 RID: 1750
1519
1520 // Token: 0x040006D7 RID: 1751
1522
1523 // Token: 0x040006D8 RID: 1752
1524 private bool _onceFailed;
1525
1526 // Token: 0x040006D9 RID: 1753
1528
1529 // Token: 0x040006DA RID: 1754
1531
1532 // Token: 0x040006DB RID: 1755
1534
1535 // Token: 0x040006DC RID: 1756
1537
1538 // Token: 0x040006DD RID: 1757
1540
1541 // Token: 0x040006DE RID: 1758
1543
1544 // Token: 0x040006DF RID: 1759
1546
1547 // Token: 0x040006E0 RID: 1760
1548 private const int s_DefaultTimeout = 100000;
1549
1550 // Token: 0x040006E1 RID: 1761
1552
1553 // Token: 0x02000152 RID: 338
1554 private enum RequestStage
1555 {
1556 // Token: 0x040006E3 RID: 1763
1558 // Token: 0x040006E4 RID: 1764
1560 // Token: 0x040006E5 RID: 1765
1561 WriteReady,
1562 // Token: 0x040006E6 RID: 1766
1563 ReadReady,
1564 // Token: 0x040006E7 RID: 1767
1566 }
1567
1568 // Token: 0x02000153 RID: 339
1570 [StructLayout(3)]
1572 {
1573 // Token: 0x06000890 RID: 2192 RVA: 0x0001E68C File Offset: 0x0001C88C
1574 private void MoveNext()
1575 {
1577 string host = ftpWebRequest._uri.Host;
1578 int port = ftpWebRequest._uri.Port;
1579 long num = 0L;
1580 Task task;
1581 ConfiguredTaskAwaitable configuredTaskAwaitable = task.ConfigureAwait(num != 0L);
1582 }
1583
1584 // Token: 0x06000891 RID: 2193 RVA: 0x0001E6E8 File Offset: 0x0001C8E8
1589
1590 // Token: 0x040006E8 RID: 1768
1592
1593 // Token: 0x040006E9 RID: 1769
1595
1596 // Token: 0x040006EA RID: 1770
1598
1599 // Token: 0x040006EB RID: 1771
1600 private global::System.Net.Sockets.TcpClient <client>5__2;
1601
1602 // Token: 0x040006EC RID: 1772
1604 }
1605
1606 // Token: 0x02000154 RID: 340
1608 [Serializable]
1609 private sealed class <>c
1610 {
1611 // Token: 0x06000892 RID: 2194 RVA: 0x0001E6F8 File Offset: 0x0001C8F8
1612 // Note: this type is marked as 'beforefieldinit'.
1613 static <>c()
1614 {
1615 }
1616
1617 // Token: 0x06000893 RID: 2195 RVA: 0x0001E708 File Offset: 0x0001C908
1618 public <>c()
1619 {
1620 }
1621
1622 // Token: 0x06000894 RID: 2196 RVA: 0x00002050 File Offset: 0x00000250
1623 internal global::System.Security.Cryptography.X509Certificates.X509CertificateCollection <get_ClientCertificates>b__114_0()
1624 {
1625 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1626 }
1627
1628 // Token: 0x040006ED RID: 1773
1629 public static readonly FtpWebRequest.<>c <>9;
1630
1631 // Token: 0x040006EE RID: 1774
1632 public static Func<global::System.Security.Cryptography.X509Certificates.X509CertificateCollection> <>9__114_0;
1633 }
1634 }
1635}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
Stream SubmitRequest(WebRequest request, bool isAsync, bool readInitalResponseOnConnect)
static WebException RequestAbortedException
static WebException TimeoutException
static FtpMethodInfo GetMethodInfo(string method)
readonly global::System.Uri _uri
global::System.Security.Cryptography.X509Certificates.X509CertificateCollection _clientCertificates
FtpControlStream CreateConnection()
FtpWebRequest.RequestStage FinishRequestStage(FtpWebRequest.RequestStage stage)
bool AttemptedRecovery(Exception e)
LazyAsyncResult _readAsyncResult
static readonly TimerThread.Queue s_DefaultTimerQueue
override global::System.Net.Cache.RequestCachePolicy CachePolicy
FtpControlStream _connection
override bool UseDefaultCredentials
override WebResponse GetResponse()
void RequestCallback(object obj)
TimerThread.Callback _timerCallback
WebHeaderCollection _ftpRequestHeaders
override global::System.Uri RequestUri
override ICredentials Credentials
global::System.Security.Cryptography.X509Certificates.X509CertificateCollection ClientCertificates
TimerThread.Queue _timerQueue
FtpWebResponse _ftpWebResponse
void DataStreamClosed(CloseExState closeState)
FtpWebRequest.RequestStage _requestStage
override IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
override Stream EndGetRequestStream(IAsyncResult asyncResult)
void SubmitRequest(bool isAsync)
void EnsureFtpWebResponse(Exception exception)
static new global::System.Net.Cache.RequestCachePolicy DefaultCachePolicy
override IWebProxy Proxy
override WebResponse EndGetResponse(IAsyncResult asyncResult)
ContextAwareResult _writeAsyncResult
Stream TimedSubmitRequestHelper(bool isAsync)
TimerThread.Queue TimerQueue
override WebHeaderCollection Headers
void TimerCallback(TimerThread.Timer timer, int timeNoticed, object context)
Exception TranslateConnectException(Exception e)
void SetException(Exception exception)
override Stream GetRequestStream()
static readonly NetworkCredential s_defaultFtpNetworkCredential
override string ContentType
void AsyncRequestCallback(object obj)
FtpWebRequest(global::System.Uri uri)
override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
LazyAsyncResult _requestCompleteAsyncResult
void SyncRequestCallback(object obj)
override string ConnectionGroupName
static void Info(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static void Enter(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
global::System.Net.Sockets.NetworkStream NetworkStream
static TimerThread.Queue GetOrCreateQueue(int durationMilliseconds)
static global::System.Net.Cache.RequestCachePolicy DefaultCachePolicy
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
string UserInfo
Definition Uri.cs:1237
string Host
Definition Uri.cs:811
static DateTime Now
Definition DateTime.cs:530
static DateTime UtcNow
Definition DateTime.cs:1318
void SetStateMachine(IAsyncStateMachine stateMachine)
AsyncVoidMethodBuilder t__builder
ConfiguredTaskAwaitable.ConfiguredTaskAwaiter u__1
double TotalMilliseconds
Definition TimeSpan.cs:117