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
NetEventSource.cs
Go to the documentation of this file.
1using System;
7
8namespace System.Net
9{
10 // Token: 0x02000129 RID: 297
11 internal sealed class NetEventSource : EventSource
12 {
13 // Token: 0x060006F0 RID: 1776 RVA: 0x000194CC File Offset: 0x000176CC
14 [NonEvent]
15 public static void Enter(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName] [Optional] string memberName)
16 {
17 if (!true)
18 {
19 }
21 if (!true)
22 {
23 }
25 if (formattableString != null)
26 {
27 if (!true)
28 {
29 }
31 return;
32 }
33 }
34
35 // Token: 0x060006F1 RID: 1777 RVA: 0x000194FC File Offset: 0x000176FC
36 [NonEvent]
37 public static void Enter(object thisOrContextObject, object arg0, [CallerMemberName] [Optional] string memberName)
38 {
39 if (!true)
40 {
41 }
43 if (!true)
44 {
45 }
47 object obj = NetEventSource.Format(arg0);
48 string text2 = string.Format("({0})", obj);
49 }
50
51 // Token: 0x060006F2 RID: 1778 RVA: 0x00019530 File Offset: 0x00017730
52 [NonEvent]
53 public static void Enter(object thisOrContextObject, object arg0, object arg1, [CallerMemberName] [Optional] string memberName)
54 {
55 if (!true)
56 {
57 }
59 if (!true)
60 {
61 }
63 object obj = NetEventSource.Format(arg0);
65 string text2 = string.Format("({0}, {1})", obj, obj2);
66 }
67
68 // Token: 0x060006F3 RID: 1779 RVA: 0x00019570 File Offset: 0x00017770
69 [NonEvent]
70 public static void Enter(object thisOrContextObject, object arg0, object arg1, object arg2, [CallerMemberName] [Optional] string memberName)
71 {
72 if (!true)
73 {
74 }
76 if (!true)
77 {
78 }
80 object obj = NetEventSource.Format(arg0);
83 string text2 = string.Format("({0}, {1}, {2})", obj, obj2, obj3);
84 }
85
86 // Token: 0x060006F4 RID: 1780 RVA: 0x000195B8 File Offset: 0x000177B8
87 [Event(1, Level = EventLevel.Informational, Keywords = (EventKeywords)4L)]
88 private void Enter(string thisOrContextObject, string memberName, string parameters)
89 {
90 base.WriteEvent(1, thisOrContextObject, parameters, parameters);
91 }
92
93 // Token: 0x060006F5 RID: 1781 RVA: 0x000195D0 File Offset: 0x000177D0
94 [NonEvent]
95 public static void Exit(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName] [Optional] string memberName)
96 {
97 if (!true)
98 {
99 }
101 if (!true)
102 {
103 }
105 if (formattableString != null)
106 {
107 if (!true)
108 {
109 }
111 return;
112 }
113 }
114
115 // Token: 0x060006F6 RID: 1782 RVA: 0x00019600 File Offset: 0x00017800
116 [NonEvent]
117 public static void Exit(object thisOrContextObject, object arg0, [CallerMemberName] [Optional] string memberName)
118 {
119 if (!true)
120 {
121 }
123 if (!true)
124 {
125 }
127 object obj = NetEventSource.Format(arg0);
128 }
129
130 // Token: 0x060006F7 RID: 1783 RVA: 0x00019628 File Offset: 0x00017828
131 [NonEvent]
132 public static void Exit(object thisOrContextObject, object arg0, object arg1, [CallerMemberName] [Optional] string memberName)
133 {
134 if (!true)
135 {
136 }
138 if (!true)
139 {
140 }
142 object obj = NetEventSource.Format(arg0);
143 object obj2 = NetEventSource.Format(arg1);
144 string text2 = string.Format("{0}, {1}", obj, obj2);
145 }
146
147 // Token: 0x060006F8 RID: 1784 RVA: 0x00019668 File Offset: 0x00017868
148 [Event(2, Level = EventLevel.Informational, Keywords = (EventKeywords)4L)]
149 private void Exit(string thisOrContextObject, string memberName, string result)
150 {
151 base.WriteEvent(2, thisOrContextObject, result, result);
152 }
153
154 // Token: 0x060006F9 RID: 1785 RVA: 0x00019680 File Offset: 0x00017880
155 [NonEvent]
156 public static void Info(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName] [Optional] string memberName)
157 {
158 if (!true)
159 {
160 }
162 if (!true)
163 {
164 }
166 if (formattableString != null)
167 {
168 if (!true)
169 {
170 }
172 return;
173 }
174 }
175
176 // Token: 0x060006FA RID: 1786 RVA: 0x000196B0 File Offset: 0x000178B0
177 [NonEvent]
178 public static void Info(object thisOrContextObject, object message, [CallerMemberName] [Optional] string memberName)
179 {
180 if (!true)
181 {
182 }
184 if (!true)
185 {
186 }
188 object obj = NetEventSource.Format(message);
189 }
190
191 // Token: 0x060006FB RID: 1787 RVA: 0x000196D8 File Offset: 0x000178D8
192 [Event(4, Level = EventLevel.Informational, Keywords = (EventKeywords)1L)]
193 private void Info(string thisOrContextObject, string memberName, string message)
194 {
195 base.WriteEvent(4, thisOrContextObject, message, message);
196 }
197
198 // Token: 0x060006FC RID: 1788 RVA: 0x000196F0 File Offset: 0x000178F0
199 [NonEvent]
200 public static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] [Optional] string memberName)
201 {
202 if (!true)
203 {
204 }
206 if (!true)
207 {
208 }
211 }
212
213 // Token: 0x060006FD RID: 1789 RVA: 0x00019718 File Offset: 0x00017918
214 [NonEvent]
215 public static void Error(object thisOrContextObject, object message, [CallerMemberName] [Optional] string memberName)
216 {
217 if (!true)
218 {
219 }
221 if (!true)
222 {
223 }
225 object obj = NetEventSource.Format(message);
226 }
227
228 // Token: 0x060006FE RID: 1790 RVA: 0x00019740 File Offset: 0x00017940
229 [Event(5, Level = EventLevel.Warning, Keywords = (EventKeywords)1L)]
230 private void ErrorMessage(string thisOrContextObject, string memberName, string message)
231 {
232 base.WriteEvent(5, thisOrContextObject, message, message);
233 }
234
235 // Token: 0x060006FF RID: 1791 RVA: 0x00019758 File Offset: 0x00017958
236 [NonEvent]
237 public static void Fail(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] [Optional] string memberName)
238 {
239 if (!true)
240 {
241 }
243 if (!true)
244 {
245 }
248 }
249
250 // Token: 0x06000700 RID: 1792 RVA: 0x00019780 File Offset: 0x00017980
251 [NonEvent]
252 public static void Fail(object thisOrContextObject, object message, [CallerMemberName] [Optional] string memberName)
253 {
254 if (!true)
255 {
256 }
258 if (!true)
259 {
260 }
262 object obj = NetEventSource.Format(message);
263 }
264
265 // Token: 0x06000701 RID: 1793 RVA: 0x000197A8 File Offset: 0x000179A8
266 [Event(6, Level = EventLevel.Critical, Keywords = (EventKeywords)2L)]
267 private void CriticalFailure(string thisOrContextObject, string memberName, string message)
268 {
269 base.WriteEvent(6, thisOrContextObject, message, message);
270 }
271
272 // Token: 0x06000702 RID: 1794 RVA: 0x000197C0 File Offset: 0x000179C0
273 [NonEvent]
274 public static void DumpBuffer(object thisOrContextObject, byte[] buffer, [CallerMemberName] [Optional] string memberName)
275 {
276 if (!true)
277 {
278 }
279 }
280
281 // Token: 0x06000703 RID: 1795 RVA: 0x000197D0 File Offset: 0x000179D0
282 [NonEvent]
283 public static void DumpBuffer(object thisOrContextObject, byte[] buffer, int offset, int count, [CallerMemberName] [Optional] string memberName)
284 {
285 if (!true)
286 {
287 }
289 if ("DumpBuffer" == null || "DumpBuffer" != null)
290 {
293 return;
294 }
295 throw new ArrayTypeMismatchException();
296 }
297
298 // Token: 0x06000704 RID: 1796 RVA: 0x00019820 File Offset: 0x00017A20
299 [NonEvent]
300 public static void DumpBuffer(object thisOrContextObject, IntPtr bufferPtr, int count, [CallerMemberName] [Optional] string memberName)
301 {
302 if (!true)
303 {
304 }
306 int num = 1024;
307 int num2 = Math.Min(count, num);
308 }
309
310 // Token: 0x06000705 RID: 1797 RVA: 0x00019858 File Offset: 0x00017A58
311 [Event(7, Level = EventLevel.Verbose, Keywords = (EventKeywords)2L)]
312 private void DumpBuffer(string thisOrContextObject, string memberName, byte[] buffer)
313 {
314 }
315
316 // Token: 0x06000706 RID: 1798 RVA: 0x00019868 File Offset: 0x00017A68
317 [NonEvent]
318 public static void Associate(object first, object second, [CallerMemberName] [Optional] string memberName)
319 {
320 if (!true)
321 {
322 }
324 if (!true)
325 {
326 }
327 string text = NetEventSource.IdOf(first);
328 string text2 = NetEventSource.IdOf(first);
329 string text3 = NetEventSource.IdOf(second);
330 }
331
332 // Token: 0x06000707 RID: 1799 RVA: 0x00019898 File Offset: 0x00017A98
333 [NonEvent]
334 public static void Associate(object thisOrContextObject, object first, object second, [CallerMemberName] [Optional] string memberName)
335 {
336 if (!true)
337 {
338 }
340 if (!true)
341 {
342 }
344 string text2 = NetEventSource.IdOf(first);
345 string text3 = NetEventSource.IdOf(second);
346 }
347
348 // Token: 0x06000708 RID: 1800 RVA: 0x000198C8 File Offset: 0x00017AC8
349 [Event(3, Level = EventLevel.Informational, Keywords = (EventKeywords)1L, Message = "[{2}]<-->[{3}]")]
350 private void Associate(string thisOrContextObject, string memberName, string first, string second)
351 {
352 this.WriteEvent(3, thisOrContextObject, first, first, second);
353 }
354
355 // Token: 0x06000709 RID: 1801 RVA: 0x000198E4 File Offset: 0x00017AE4
356 [Conditional("DEBUG_NETEVENTSOURCE_MISUSE")]
357 private static void DebugValidateArg(object arg)
358 {
359 if (!true)
360 {
361 }
363 }
364
365 // Token: 0x0600070A RID: 1802 RVA: 0x000198FC File Offset: 0x00017AFC
366 [Conditional("DEBUG_NETEVENTSOURCE_MISUSE")]
368 {
369 }
370
371 // Token: 0x1700017C RID: 380
372 // (get) Token: 0x0600070B RID: 1803 RVA: 0x0001990C File Offset: 0x00017B0C
373 public new static bool IsEnabled
374 {
375 get
376 {
377 if (!true)
378 {
379 }
380 bool flag;
381 return flag;
382 }
383 }
384
385 // Token: 0x0600070C RID: 1804 RVA: 0x00019920 File Offset: 0x00017B20
386 [NonEvent]
387 public static string IdOf(object value)
388 {
389 string text;
390 return text;
391 }
392
393 // Token: 0x0600070D RID: 1805 RVA: 0x00002050 File Offset: 0x00000250
394 [NonEvent]
395 public static int GetHashCode(object value)
396 {
397 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
398 }
399
400 // Token: 0x0600070E RID: 1806 RVA: 0x00019934 File Offset: 0x00017B34
401 [NonEvent]
402 public static object Format(object value)
403 {
404 if ("(null)" != null)
405 {
406 return "(null)";
407 }
408 if ("(null)" != null)
409 {
410 }
411 string text = NetEventSource.IdOf("(null)");
412 string text3;
413 string text2 = string.Format("0x{0:X}", text3);
414 Type type = text3.GetType();
415 int stringLength = text3._stringLength;
416 throw new InvalidCastException();
417 }
418
419 // Token: 0x0600070F RID: 1807 RVA: 0x0001998C File Offset: 0x00017B8C
420 [NonEvent]
421 private static string Format(FormattableString s)
422 {
423 object obj2;
424 object obj = NetEventSource.Format(obj2);
425 string text;
426 return text;
427 }
428
429 // Token: 0x06000710 RID: 1808 RVA: 0x000199F0 File Offset: 0x00017BF0
430 [NonEvent]
431 private void WriteEvent(int eventId, string arg1, string arg2, string arg3, string arg4)
432 {
433 bool flag = base.IsEnabled();
434 if (arg1 != null)
435 {
439 return;
440 }
442 }
443
444 // Token: 0x06000711 RID: 1809 RVA: 0x00019A38 File Offset: 0x00017C38
445 [NonEvent]
446 private void WriteEvent(int eventId, string arg1, string arg2, byte[] arg3)
447 {
448 bool flag = base.IsEnabled();
449 if (arg3 != null)
450 {
453 if (arg3 != null)
454 {
455 return;
456 }
457 }
458 }
459
460 // Token: 0x06000712 RID: 1810 RVA: 0x00019A68 File Offset: 0x00017C68
461 [NonEvent]
462 private void WriteEvent(int eventId, string arg1, int arg2, int arg3, int arg4)
463 {
464 bool flag = base.IsEnabled();
466 }
467
468 // Token: 0x06000713 RID: 1811 RVA: 0x00019A90 File Offset: 0x00017C90
469 [NonEvent]
470 private void WriteEvent(int eventId, string arg1, int arg2, string arg3)
471 {
472 bool flag = base.IsEnabled();
475 }
476
477 // Token: 0x06000714 RID: 1812 RVA: 0x00019AB8 File Offset: 0x00017CB8
478 [NonEvent]
479 private void WriteEvent(int eventId, string arg1, string arg2, int arg3)
480 {
481 bool flag = base.IsEnabled();
484 }
485
486 // Token: 0x06000715 RID: 1813 RVA: 0x00019AE0 File Offset: 0x00017CE0
487 [NonEvent]
488 private void WriteEvent(int eventId, string arg1, string arg2, string arg3, int arg4)
489 {
490 bool flag = base.IsEnabled();
493 }
494
495 // Token: 0x06000716 RID: 1814 RVA: 0x00019B14 File Offset: 0x00017D14
497 {
498 }
499
500 // Token: 0x06000717 RID: 1815 RVA: 0x00019B28 File Offset: 0x00017D28
501 // Note: this type is marked as 'beforefieldinit'.
503 {
504 }
505
506 // Token: 0x0400056A RID: 1386
508
509 // Token: 0x0400056B RID: 1387
510 private const string MissingMember = "(?)";
511
512 // Token: 0x0400056C RID: 1388
513 private const string NullInstance = "(null)";
514
515 // Token: 0x0400056D RID: 1389
516 private const string StaticMethodObject = "(static)";
517
518 // Token: 0x0400056E RID: 1390
519 private const string NoParameters = "";
520
521 // Token: 0x0400056F RID: 1391
522 private const int MaxDumpSize = 1024;
523
524 // Token: 0x04000570 RID: 1392
525 private const int EnterEventId = 1;
526
527 // Token: 0x04000571 RID: 1393
528 private const int ExitEventId = 2;
529
530 // Token: 0x04000572 RID: 1394
531 private const int AssociateEventId = 3;
532
533 // Token: 0x04000573 RID: 1395
534 private const int InfoEventId = 4;
535
536 // Token: 0x04000574 RID: 1396
537 private const int ErrorEventId = 5;
538
539 // Token: 0x04000575 RID: 1397
540 private const int CriticalFailureEventId = 6;
541
542 // Token: 0x04000576 RID: 1398
543 private const int DumpArrayEventId = 7;
544
545 // Token: 0x04000577 RID: 1399
546 private const int EnumerateSecurityPackagesId = 8;
547
548 // Token: 0x04000578 RID: 1400
549 private const int SspiPackageNotFoundId = 9;
550
551 // Token: 0x04000579 RID: 1401
552 private const int AcquireDefaultCredentialId = 10;
553
554 // Token: 0x0400057A RID: 1402
555 private const int AcquireCredentialsHandleId = 11;
556
557 // Token: 0x0400057B RID: 1403
558 private const int InitializeSecurityContextId = 12;
559
560 // Token: 0x0400057C RID: 1404
561 private const int SecurityContextInputBufferId = 13;
562
563 // Token: 0x0400057D RID: 1405
564 private const int SecurityContextInputBuffersId = 14;
565
566 // Token: 0x0400057E RID: 1406
567 private const int AcceptSecuritContextId = 15;
568
569 // Token: 0x0400057F RID: 1407
570 private const int OperationReturnedSomethingId = 16;
571
572 // Token: 0x04000580 RID: 1408
573 private const int NextAvailableEventId = 17;
574
575 // Token: 0x0200012A RID: 298
576 public class Keywords
577 {
578 // Token: 0x06000718 RID: 1816 RVA: 0x00019B38 File Offset: 0x00017D38
579 public Keywords()
580 {
581 }
582
583 // Token: 0x04000581 RID: 1409
585
586 // Token: 0x04000582 RID: 1410
588
589 // Token: 0x04000583 RID: 1411
591 }
592 }
593}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static void Associate(object thisOrContextObject, object first, object second, [CallerMemberName][Optional] string memberName)
static void Exit(object thisOrContextObject, object arg0, object arg1, [CallerMemberName][Optional] string memberName)
void DumpBuffer(string thisOrContextObject, string memberName, byte[] buffer)
static void DumpBuffer(object thisOrContextObject, byte[] buffer, [CallerMemberName][Optional] string memberName)
void Enter(string thisOrContextObject, string memberName, string parameters)
void WriteEvent(int eventId, string arg1, string arg2, byte[] arg3)
void Associate(string thisOrContextObject, string memberName, string first, string second)
void CriticalFailure(string thisOrContextObject, string memberName, string message)
void ErrorMessage(string thisOrContextObject, string memberName, string message)
static void Info(object thisOrContextObject, object message, [CallerMemberName][Optional] string memberName)
static void Info(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static void Enter(object thisOrContextObject, object arg0, object arg1, [CallerMemberName][Optional] string memberName)
void Info(string thisOrContextObject, string memberName, string message)
static void Exit(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static string IdOf(object value)
static string Format(FormattableString s)
static void Exit(object thisOrContextObject, object arg0, [CallerMemberName][Optional] string memberName)
static readonly NetEventSource Log
static void DebugValidateArg(object arg)
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static int GetHashCode(object value)
static void Associate(object first, object second, [CallerMemberName][Optional] string memberName)
static void DumpBuffer(object thisOrContextObject, IntPtr bufferPtr, int count, [CallerMemberName][Optional] string memberName)
void WriteEvent(int eventId, string arg1, string arg2, string arg3, string arg4)
static void Fail(object thisOrContextObject, object message, [CallerMemberName][Optional] string memberName)
static void Enter(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static void DumpBuffer(object thisOrContextObject, byte[] buffer, int offset, int count, [CallerMemberName][Optional] string memberName)
static void DebugValidateArg(FormattableString arg)
void WriteEvent(int eventId, string arg1, int arg2, string arg3)
void WriteEvent(int eventId, string arg1, string arg2, string arg3, int arg4)
void Exit(string thisOrContextObject, string memberName, string result)
static void Fail(object thisOrContextObject, FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static object Format(object value)
static void Enter(object thisOrContextObject, object arg0, object arg1, object arg2, [CallerMemberName][Optional] string memberName)
static void Error(object thisOrContextObject, object message, [CallerMemberName][Optional] string memberName)
void WriteEvent(int eventId, string arg1, int arg2, int arg3, int arg4)
void WriteEvent(int eventId, string arg1, string arg2, int arg3)
static void Enter(object thisOrContextObject, object arg0, [CallerMemberName][Optional] string memberName)
new Type GetType()
Definition Type.cs:287