Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteToAllListeners() [2/2]

unsafe void System.Diagnostics.Tracing.EventSource.WriteToAllListeners ( string eventName,
ref EventDescriptor eventDescriptor,
EventTags tags,
Guid * pActivityId,
Guid * pChildActivityId,
EventPayload payload )
inlineprivateinherited

Definition at line 3045 of file EventSource.cs.

3046 {
3047 EventWrittenEventArgs eventWrittenEventArgs = new EventWrittenEventArgs(this, -1, pActivityId, pChildActivityId)
3048 {
3049 EventName = eventName,
3050 Level = (EventLevel)eventDescriptor.Level,
3051 Keywords = (EventKeywords)eventDescriptor.Keywords,
3052 Opcode = (EventOpcode)eventDescriptor.Opcode,
3053 Tags = tags
3054 };
3055 if (payload != null)
3056 {
3057 eventWrittenEventArgs.Payload = new ReadOnlyCollection<object>((IList<object>)payload.Values);
3058 eventWrittenEventArgs.PayloadNames = new ReadOnlyCollection<string>((IList<string>)payload.Keys);
3059 }
3061 }
void DispatchToAllListeners(EventWrittenEventArgs eventCallbackArgs)

References System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(), System.Collections.Generic.Dictionary< TKey, TValue >.Keys, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.