Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Dispose() [2/2]

virtual void System.Diagnostics.Tracing.EventSource.Dispose ( bool disposing)
inlineprotectedvirtualinherited

Definition at line 1059 of file EventSource.cs.

1060 {
1061 if (!IsSupported)
1062 {
1063 return;
1064 }
1065 if (disposing)
1066 {
1068 {
1069 try
1070 {
1072 }
1073 catch
1074 {
1075 }
1076 m_eventSourceEnabled = false;
1077 }
1078 if (m_etwProvider != null)
1079 {
1080 m_etwProvider.Dispose();
1081 m_etwProvider = null;
1082 }
1083 if (m_eventPipeProvider != null)
1084 {
1085 m_eventPipeProvider.Dispose();
1086 m_eventPipeProvider = null;
1087 }
1088 }
1089 m_eventSourceEnabled = false;
1090 m_eventSourceDisposed = true;
1091 }
volatile OverrideEventProvider m_eventPipeProvider
volatile OverrideEventProvider m_etwProvider

References System.Diagnostics.Tracing.EventSource.IsSupported, System.Diagnostics.Tracing.EventSource.m_etwProvider, System.Diagnostics.Tracing.EventSource.m_eventPipeProvider, System.Diagnostics.Tracing.EventSource.m_eventSourceDisposed, System.Diagnostics.Tracing.EventSource.m_eventSourceEnabled, System.Diagnostics.Tracing.EventSource.m_rawManifest, and System.Diagnostics.Tracing.SendManifest.