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
BackgroundWorker.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000330 RID: 816
8 [DefaultEvent("DoWork")]
10 {
11 // Token: 0x06001542 RID: 5442 RVA: 0x0003FCE4 File Offset: 0x0003DEE4
13 {
14 if (!true)
15 {
16 }
17 base..ctor();
18 }
19
20 // Token: 0x06001543 RID: 5443 RVA: 0x0003FCFC File Offset: 0x0003DEFC
21 private void AsyncOperationCompleted(object arg)
22 {
23 if (arg != null)
24 {
25 }
26 }
27
28 // Token: 0x170004DA RID: 1242
29 // (get) Token: 0x06001544 RID: 5444 RVA: 0x0003FD14 File Offset: 0x0003DF14
31 {
32 get
33 {
34 return this._cancellationPending;
35 }
36 }
37
38 // Token: 0x06001545 RID: 5445 RVA: 0x0003FD28 File Offset: 0x0003DF28
39 public void CancelAsync()
40 {
41 while (!this._canCancelWorker)
42 {
43 }
45 }
46
47 // Token: 0x1400000E RID: 14
48 // (add) Token: 0x06001546 RID: 5446 RVA: 0x0003FD44 File Offset: 0x0003DF44
49 // (remove) Token: 0x06001547 RID: 5447 RVA: 0x0003FD68 File Offset: 0x0003DF68
51 {
53 add
54 {
55 if (Delegate.Combine(this.DoWork, value) != null)
56 {
57 }
58 }
60 remove
61 {
63 if (@delegate != null)
64 {
65 }
66 }
67 }
68
69 // Token: 0x170004DB RID: 1243
70 // (get) Token: 0x06001548 RID: 5448 RVA: 0x0003FD80 File Offset: 0x0003DF80
71 public bool IsBusy
72 {
73 get
74 {
75 return this._isRunning;
76 }
77 }
78
79 // Token: 0x06001549 RID: 5449 RVA: 0x0003FD94 File Offset: 0x0003DF94
80 protected virtual void OnDoWork(DoWorkEventArgs e)
81 {
83 if (doWork != null)
84 {
85 IntPtr invoke_impl = doWork.invoke_impl;
86 IntPtr method_code = doWork.method_code;
87 IntPtr method = doWork.method;
88 return;
89 }
90 }
91
92 // Token: 0x0600154A RID: 5450 RVA: 0x0003FDC4 File Offset: 0x0003DFC4
94 {
96 if (runWorkerCompleted != null)
97 {
98 IntPtr invoke_impl = runWorkerCompleted.invoke_impl;
99 IntPtr method_code = runWorkerCompleted.method_code;
100 IntPtr method = runWorkerCompleted.method;
101 return;
102 }
103 }
104
105 // Token: 0x0600154B RID: 5451 RVA: 0x0003FDF4 File Offset: 0x0003DFF4
107 {
109 if (progressChanged != null)
110 {
111 IntPtr invoke_impl = progressChanged.invoke_impl;
112 IntPtr method_code = progressChanged.method_code;
113 IntPtr method = progressChanged.method;
114 return;
115 }
116 }
117
118 // Token: 0x1400000F RID: 15
119 // (add) Token: 0x0600154C RID: 5452 RVA: 0x0003FE24 File Offset: 0x0003E024
120 // (remove) Token: 0x0600154D RID: 5453 RVA: 0x0003FE48 File Offset: 0x0003E048
122 {
124 add
125 {
126 if (Delegate.Combine(this.ProgressChanged, value) != null)
127 {
128 }
129 }
131 remove
132 {
133 if (Delegate.Remove(this.ProgressChanged, value) != null)
134 {
135 }
136 }
137 }
138
139 // Token: 0x0600154E RID: 5454 RVA: 0x0003FE6C File Offset: 0x0003E06C
140 private void ProgressReporter(object arg)
141 {
142 if (arg != null)
143 {
144 }
145 }
146
147 // Token: 0x0600154F RID: 5455 RVA: 0x0003FE84 File Offset: 0x0003E084
149 {
150 long num = 0L;
151 this.ReportProgress(percentProgress, num);
152 }
153
154 // Token: 0x06001550 RID: 5456 RVA: 0x0003FE9C File Offset: 0x0003E09C
155 public void ReportProgress(int percentProgress, object userState)
156 {
157 while (!this._workerReportsProgress)
158 {
159 }
162 if (asyncOperation != null)
163 {
164 return;
165 }
166 IntPtr invoke_impl = progressReporter.invoke_impl;
167 IntPtr method_code = progressReporter.method_code;
168 IntPtr method = progressReporter.method;
169 }
170
171 // Token: 0x06001551 RID: 5457 RVA: 0x0003FEDC File Offset: 0x0003E0DC
172 public void RunWorkerAsync()
173 {
174 long num = 0L;
175 this.RunWorkerAsync(num);
176 }
177
178 // Token: 0x06001552 RID: 5458 RVA: 0x0003FEF4 File Offset: 0x0003E0F4
179 public void RunWorkerAsync(object argument)
180 {
181 while (this._isRunning)
182 {
183 }
184 this._cancellationPending = 256 != 0;
188 if (256 == 0)
189 {
190 }
191 if (!true)
192 {
193 }
194 if (!true)
195 {
196 }
198 if (!true)
199 {
200 }
201 }
202
203 // Token: 0x14000010 RID: 16
204 // (add) Token: 0x06001553 RID: 5459 RVA: 0x0003FF44 File Offset: 0x0003E144
205 // (remove) Token: 0x06001554 RID: 5460 RVA: 0x0003FF68 File Offset: 0x0003E168
207 {
209 add
210 {
211 if (Delegate.Combine(this.RunWorkerCompleted, value) != null)
212 {
213 }
214 }
216 remove
217 {
218 if (Delegate.Remove(this.RunWorkerCompleted, value) != null)
219 {
220 }
221 }
222 }
223
224 // Token: 0x170004DC RID: 1244
225 // (get) Token: 0x06001555 RID: 5461 RVA: 0x0003FF8C File Offset: 0x0003E18C
226 // (set) Token: 0x06001556 RID: 5462 RVA: 0x0003FFA0 File Offset: 0x0003E1A0
228 {
229 get
230 {
231 return this._workerReportsProgress;
232 }
233 set
234 {
235 }
236 }
237
238 // Token: 0x170004DD RID: 1245
239 // (get) Token: 0x06001557 RID: 5463 RVA: 0x0003FFB0 File Offset: 0x0003E1B0
240 // (set) Token: 0x06001558 RID: 5464 RVA: 0x0003FFC4 File Offset: 0x0003E1C4
242 {
243 get
244 {
245 return this._canCancelWorker;
246 }
247 set
248 {
249 }
250 }
251
252 // Token: 0x06001559 RID: 5465 RVA: 0x0003FFD4 File Offset: 0x0003E1D4
253 private void WorkerThreadStart(object argument)
254 {
255 }
256
257 // Token: 0x0600155A RID: 5466 RVA: 0x0003FFFC File Offset: 0x0003E1FC
258 protected override void Dispose(bool disposing)
259 {
260 }
261
262 // Token: 0x0600155B RID: 5467 RVA: 0x0004000C File Offset: 0x0003E20C
265 {
266 this.WorkerThreadStart(arg);
267 }
268
269 // Token: 0x04001176 RID: 4470
270 private bool _canCancelWorker;
271
272 // Token: 0x04001177 RID: 4471
274
275 // Token: 0x04001178 RID: 4472
277
278 // Token: 0x04001179 RID: 4473
279 private bool _isRunning;
280
281 // Token: 0x0400117A RID: 4474
283
284 // Token: 0x0400117B RID: 4475
286
287 // Token: 0x0400117C RID: 4476
289
290 // Token: 0x0400117D RID: 4477
293
294 // Token: 0x0400117E RID: 4478
297
298 // Token: 0x0400117F RID: 4479
301 }
302}
class f__AnonymousType0<< Count > j__TPar
static SynchronizationContext SynchronizationContext
static AsyncOperation CreateOperation(object userSuppliedState, SynchronizationContext syncContext)
readonly SendOrPostCallback _operationCompleted
readonly SendOrPostCallback _progressReporter
void ReportProgress(int percentProgress, object userState)
void< RunWorkerAsync > b__27_0(object arg)
virtual void OnProgressChanged(ProgressChangedEventArgs e)
void ReportProgress(int percentProgress)
ProgressChangedEventHandler ProgressChanged
virtual void OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
RunWorkerCompletedEventHandler RunWorkerCompleted
override void Dispose(bool disposing)
virtual void OnDoWork(DoWorkEventArgs e)
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278