mscorlib(4.0.0.0) API with additions
EventSourceOptions.cs
2 {
4  [__DynamicallyInvokable]
5  public struct EventSourceOptions
6  {
7  internal EventKeywords keywords;
8 
9  internal EventTags tags;
10 
11  internal EventActivityOptions activityOptions;
12 
13  internal byte level;
14 
15  internal byte opcode;
16 
17  internal byte valuesSet;
18 
19  internal const byte keywordsSet = 1;
20 
21  internal const byte tagsSet = 2;
22 
23  internal const byte levelSet = 4;
24 
25  internal const byte opcodeSet = 8;
26 
27  internal const byte activityOptionsSet = 16;
28 
31  [__DynamicallyInvokable]
32  public EventLevel Level
33  {
34  [__DynamicallyInvokable]
35  get
36  {
37  return (EventLevel)level;
38  }
39  [__DynamicallyInvokable]
40  set
41  {
42  level = checked((byte)value);
43  valuesSet |= 4;
44  }
45  }
46 
49  [__DynamicallyInvokable]
50  public EventOpcode Opcode
51  {
52  [__DynamicallyInvokable]
53  get
54  {
55  return (EventOpcode)opcode;
56  }
57  [__DynamicallyInvokable]
58  set
59  {
60  opcode = checked((byte)value);
61  valuesSet |= 8;
62  }
63  }
64 
65  internal bool IsOpcodeSet => (valuesSet & 8) != 0;
66 
69  [__DynamicallyInvokable]
70  public EventKeywords Keywords
71  {
72  [__DynamicallyInvokable]
73  get
74  {
75  return keywords;
76  }
77  [__DynamicallyInvokable]
78  set
79  {
80  keywords = value;
81  valuesSet |= 1;
82  }
83  }
84 
87  [__DynamicallyInvokable]
88  public EventTags Tags
89  {
90  [__DynamicallyInvokable]
91  get
92  {
93  return tags;
94  }
95  [__DynamicallyInvokable]
96  set
97  {
98  tags = value;
99  valuesSet |= 2;
100  }
101  }
102 
105  [__DynamicallyInvokable]
107  {
108  [__DynamicallyInvokable]
109  get
110  {
111  return activityOptions;
112  }
113  [__DynamicallyInvokable]
114  set
115  {
116  activityOptions = value;
117  valuesSet |= 16;
118  }
119  }
120  }
121 }
EventActivityOptions
Specifies the tracking of activity start and stop events.
Specifies overrides of default event settings such as the log level, keywords and operation code when...
EventOpcode
Defines the standard operation codes that the event source attaches to events.
Definition: EventOpcode.cs:8
EventKeywords
Defines the standard keywords that apply to events.
Definition: EventKeywords.cs:6
EventKeywords Keywords
Gets or sets the keywords applied to the event. If this property is not set, the event’s keywords wil...
EventLevel
Identifies the level of an event.
Definition: EventLevel.cs:5
EventActivityOptions ActivityOptions
The activity options defined for this event source.
EventLevel Level
Gets or sets the event level applied to the event.
EventTags Tags
The event tags defined for this event source.
EventTags
Specifies the tracking of activity start and stop events. You should only use the lower 24 bits....
Definition: EventTags.cs:6
EventOpcode Opcode
Gets or sets the operation code to use for the specified event.