Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BinaryFormatterEventSource.cs
Go to the documentation of this file.
2
4
5[EventSource(Name = "System.Runtime.Serialization.Formatters.Binary.BinaryFormatterEventSource")]
7{
8 public static class Keywords
9 {
10 public const EventKeywords Serialization = (EventKeywords)1L;
11
13 }
14
16
18 {
19 }
20
21 [Event(10, Opcode = EventOpcode.Start, Keywords = (EventKeywords)1L, Level = EventLevel.Informational, ActivityOptions = EventActivityOptions.Recursive)]
22 public void SerializationStart()
23 {
24 if (IsEnabled(EventLevel.Informational, (EventKeywords)1L))
25 {
26 WriteEvent(10);
27 }
28 }
29
30 [Event(11, Opcode = EventOpcode.Stop, Keywords = (EventKeywords)1L, Level = EventLevel.Informational)]
31 public void SerializationStop()
32 {
33 if (IsEnabled(EventLevel.Informational, (EventKeywords)1L))
34 {
35 WriteEvent(11);
36 }
37 }
38
39 [NonEvent]
41 {
42 if (IsEnabled(EventLevel.Informational, (EventKeywords)1L))
43 {
44 SerializingObject(type.AssemblyQualifiedName);
45 }
46 }
47
48 [Event(12, Keywords = (EventKeywords)1L, Level = EventLevel.Informational)]
49 private void SerializingObject(string typeName)
50 {
51 WriteEvent(12, typeName);
52 }
53
54 [Event(20, Opcode = EventOpcode.Start, Keywords = (EventKeywords)2L, Level = EventLevel.Informational, ActivityOptions = EventActivityOptions.Recursive)]
56 {
57 if (IsEnabled(EventLevel.Informational, (EventKeywords)2L))
58 {
59 WriteEvent(20);
60 }
61 }
62
63 [Event(21, Opcode = EventOpcode.Stop, Keywords = (EventKeywords)2L, Level = EventLevel.Informational)]
64 public void DeserializationStop()
65 {
66 if (IsEnabled(EventLevel.Informational, (EventKeywords)2L))
67 {
68 WriteEvent(21);
69 }
70 }
71
72 [NonEvent]
74 {
75 if (IsEnabled(EventLevel.Informational, (EventKeywords)2L))
76 {
77 DeserializingObject(type.AssemblyQualifiedName);
78 }
79 }
80
81 [Event(22, Keywords = (EventKeywords)2L, Level = EventLevel.Informational)]
82 private void DeserializingObject(string typeName)
83 {
84 WriteEvent(22, typeName);
85 }
86}
unsafe void WriteEvent(int eventId)