public static bool IsInMemoryTracingEnabled() { if (AirSyncDiagnostics.traceVersion != ExTraceConfiguration.Instance.Version) { AirSyncDiagnostics.LoadThreadTracingConfig(); } return(AirSyncDiagnostics.traceConfig.InMemoryTracingEnabled); }
public static bool CheckAndSetThreadTracing(string userDN) { if (userDN == null) { return(false); } if (AirSyncDiagnostics.traceVersion != ExTraceConfiguration.Instance.Version) { AirSyncDiagnostics.LoadThreadTracingConfig(); } if (!AirSyncDiagnostics.traceConfig.PerThreadTracingConfigured) { return(false); } if (AirSyncDiagnostics.userDNList == null || !AirSyncDiagnostics.userDNList.Contains(userDN)) { return(false); } BaseTrace.CurrentThreadSettings.EnableTracing(); return(true); }