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