// OK if we get this far without an exception, then we can at least write out error messages.
// Set m_provider, which allows this.
m_provider = provider;
-#endif
#if !ES_BUILD_STANDALONE
// API available on OS >= Win 8 and patched Win 7.
this.providerMetadata.Length);
}
}
+#endif // FEATURE_MANAGED_ETW
Contract.Assert(!m_eventSourceEnabled); // We can't be enabled until we are completely initted.
// We are logically completely initialized at this point.
// We defer commands until we are completely inited. This allows error messages to be sent.
Contract.Assert(m_completelyInited);
+#if FEATURE_MANAGED_ETW
if (m_provider == null) // If we failed to construct
return;
ReportOutOfBandMessage("ERROR: Exception in Command Processing for EventSource " + Name + ": " + e.Message, true);
// We never throw when doing a command.
}
+#endif // FEATURE_MANAGED_ETW
}
#if FEATURE_ACTIVITYSAMPLING