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
LeaseManager.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000361 RID: 865
8 internal class LeaseManager
9 {
10 // Token: 0x06001CC7 RID: 7367 RVA: 0x0003EBD0 File Offset: 0x0003CDD0
12 {
13 ArrayList objects = this._objects;
14 Timer timer = this._timer;
15 if (timer != null)
16 {
17 bool flag = timer.Change(timeSpan, timeSpan);
18 return;
19 }
20 long num = 0L;
21 Monitor.Exit(objects);
22 if (num == 0L)
23 {
24 return;
25 }
26 throw new OutOfMemoryException();
27 }
28
29 // Token: 0x06001CC8 RID: 7368 RVA: 0x0003EC28 File Offset: 0x0003CE28
30 public void TrackLifetime(ServerIdentity identity)
31 {
32 ArrayList objects = this._objects;
35 Timer timer = this._timer;
36 if (timer == null)
37 {
38 this.StartManager();
39 }
40 long num = 0L;
41 if (timer != null)
42 {
43 Monitor.Exit(objects);
44 }
45 if (num == 0L)
46 {
47 return;
48 }
49 throw new OutOfMemoryException();
50 }
51
52 // Token: 0x06001CC9 RID: 7369 RVA: 0x0003EC98 File Offset: 0x0003CE98
53 public void StartManager()
54 {
55 if (!true)
56 {
57 }
58 if (true)
59 {
60 return;
61 }
62 if (!true)
63 {
64 }
65 }
66
67 // Token: 0x06001CCA RID: 7370 RVA: 0x0003ECB0 File Offset: 0x0003CEB0
68 public void StopManager()
69 {
70 Timer timer = this._timer;
71 if (timer != null)
72 {
73 timer.Dispose();
74 return;
75 }
76 }
77
78 // Token: 0x06001CCB RID: 7371 RVA: 0x0003ECD0 File Offset: 0x0003CED0
79 public void ManageLeases(object state)
80 {
81 ArrayList objects = this._objects;
84 if (objects3 != null)
85 {
86 }
88 }
89
90 // Token: 0x06001CCC RID: 7372 RVA: 0x0003ED58 File Offset: 0x0003CF58
91 public LeaseManager()
92 {
93 }
94
95 // Token: 0x04000E93 RID: 3731
97
98 // Token: 0x04000E94 RID: 3732
99 private Timer _timer;
100 }
101}
class f__AnonymousType0<< Count > j__TPar
void TrackLifetime(ServerIdentity identity)
static void Exit(object obj)
Definition Monitor.cs:47
bool Change(int dueTime, int period)
Definition Timer.cs:51