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.
1
using
System
;
2
using
System.Collections
;
3
using
System.Threading
;
4
5
namespace
System.Runtime.Remoting.Lifetime
6
{
7
// Token: 0x02000361 RID: 865
8
internal
class
LeaseManager
9
{
10
// Token: 0x06001CC7 RID: 7367 RVA: 0x0003EBD0 File Offset: 0x0003CDD0
11
public
void
SetPollTime
(
TimeSpan
timeSpan
)
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 = 0
L
;
21
Monitor
.
Exit
(objects);
22
if
(num == 0
L
)
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
;
33
identity._lease._currentState
=
LeaseState
.Active;
34
ArrayList
objects2
= this.
_objects
;
35
Timer
timer = this.
_timer
;
36
if
(timer ==
null
)
37
{
38
this.
StartManager
();
39
}
40
long
num = 0
L
;
41
if
(timer !=
null
)
42
{
43
Monitor
.
Exit
(objects);
44
}
45
if
(num == 0
L
)
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
;
82
ArrayList
objects2
= this.
_objects
;
83
ArrayList
objects3
= this.
_objects
;
84
if
(objects3 !=
null
)
85
{
86
}
87
ArrayList
objects4
= this.
_objects
;
88
}
89
90
// Token: 0x06001CCC RID: 7372 RVA: 0x0003ED58 File Offset: 0x0003CF58
91
public
LeaseManager
()
92
{
93
}
94
95
// Token: 0x04000E93 RID: 3731
96
private
ArrayList
_objects
;
97
98
// Token: 0x04000E94 RID: 3732
99
private
Timer
_timer
;
100
}
101
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Collections.ArrayList
Definition
ArrayList.cs:12
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Runtime.Remoting.Lifetime.LeaseManager._timer
Timer _timer
Definition
LeaseManager.cs:99
System.Runtime.Remoting.Lifetime.LeaseManager.LeaseManager
LeaseManager()
Definition
LeaseManager.cs:91
System.Runtime.Remoting.Lifetime.LeaseManager.TrackLifetime
void TrackLifetime(ServerIdentity identity)
Definition
LeaseManager.cs:30
System.Runtime.Remoting.Lifetime.LeaseManager._objects
ArrayList _objects
Definition
LeaseManager.cs:96
System.Runtime.Remoting.Lifetime.LeaseManager.SetPollTime
void SetPollTime(TimeSpan timeSpan)
Definition
LeaseManager.cs:11
System.Runtime.Remoting.Lifetime.LeaseManager.StartManager
void StartManager()
Definition
LeaseManager.cs:53
System.Runtime.Remoting.Lifetime.LeaseManager.ManageLeases
void ManageLeases(object state)
Definition
LeaseManager.cs:79
System.Runtime.Remoting.Lifetime.LeaseManager.StopManager
void StopManager()
Definition
LeaseManager.cs:68
System.Runtime.Remoting.Lifetime.LeaseManager
Definition
LeaseManager.cs:9
System.Runtime.Remoting.ServerIdentity
Definition
ServerIdentity.cs:11
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor
Definition
Monitor.cs:9
System.Threading.Timer.Dispose
void Dispose()
Definition
Timer.cs:65
System.Threading.Timer.Change
bool Change(int dueTime, int period)
Definition
Timer.cs:51
System.Threading.Timer
Definition
Timer.cs:12
System.Collections
Definition
ArrayList.cs:6
System.Runtime.Remoting.Lifetime.LeaseState
LeaseState
Definition
LeaseState.cs:10
System.Runtime.Remoting.Lifetime
Definition
ILease.cs:5
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.state
@ state
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.TimeSpan
Definition
TimeSpan.cs:10
source
mscorlib
System
Runtime
Remoting
Lifetime
LeaseManager.cs
Generated by
1.10.0