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

◆ IsEnabledByDefault()

bool System.Diagnostics.Tracing.EventSource.IsEnabledByDefault ( int eventNum,
bool enable,
EventLevel currentLevel,
EventKeywords currentMatchAnyKeyword )
inlineprivateinherited

Definition at line 1685 of file EventSource.cs.

1686 {
1687 if (!enable)
1688 {
1689 return false;
1690 }
1691 EventLevel level = (EventLevel)m_eventData[eventNum].Descriptor.Level;
1692 EventKeywords eventKeywords = (EventKeywords)(m_eventData[eventNum].Descriptor.Keywords & (long)(~SessionMask.All.ToEventKeywords()));
1693 EventChannel channel = (EventChannel)m_eventData[eventNum].Descriptor.Channel;
1694 return IsEnabledCommon(enable, currentLevel, currentMatchAnyKeyword, level, eventKeywords, channel);
1695 }
bool IsEnabledCommon(bool enabled, EventLevel currentLevel, EventKeywords currentMatchAnyKeyword, EventLevel eventLevel, EventKeywords eventKeywords, EventChannel eventChannel)
volatile EventMetadata[] m_eventData

References System.Diagnostics.Tracing.SessionMask.All, System.Diagnostics.Tracing.EventSource.IsEnabledCommon(), and System.Diagnostics.Tracing.EventSource.m_eventData.

Referenced by System.Diagnostics.Tracing.EventSource.DoCommand().