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

◆ Finish()

void System.Net.WebOperation.Finish ( bool ok,
[Optional] Exception error )
inlinepackage

Definition at line 456 of file WebOperation.cs.

457 {
458 int num = 1;
459 long num2 = 0L;
460 if (Interlocked.CompareExchange(0, num, (int)num2) != 0)
461 {
462 return;
463 }
464 Monitor.Enter(this, num != 0);
466 long num3 = 0L;
467 int num4 = 3;
468 if (httpWebRequest != null)
469 {
470 Monitor.Exit(this);
471 }
472 if (num3 != 0L)
473 {
474 throw new OutOfMemoryException();
475 }
476 while (num4 != 0)
477 {
478 }
479 if (error != null)
480 {
481 if (this != null)
482 {
483 this.SetError(error);
484 }
485 bool flag = this.finishedTask.TrySetException(error);
486 return;
487 }
488 bool aborted = this.Aborted;
489 if (this != null)
490 {
491 }
492 if (this != null)
493 {
494 bool aborted2 = this.Aborted;
495 return;
496 }
498 }
class f__AnonymousType0<< Count > j__TPar
void SetError(Exception error)
WebCompletionSource< ValueTuple< bool, WebOperation > > finishedTask
readonly HttpWebRequest< Request > k__BackingField
HttpWebRequest Request
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

References System.Net.WebOperation.Aborted, System.Threading.Interlocked.CompareExchange(), System.Threading.Monitor.Enter(), System.Threading.Monitor.Exit(), System.Net.WebOperation.finishedTask, j__TPar, System.Net.WebOperation.k__BackingField, System.L, System.Net.WebOperation.Request, and System.Net.WebOperation.SetError().

Referenced by System.Net.WebOperation.SetError().