static XTrace() { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; ThreadPoolX.Init(); }
static XTrace() { #if __CORE__ #else AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; #endif TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; ThreadPoolX.Init(); }
static XTrace() { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; AppDomain.CurrentDomain.ProcessExit += OnProcessExit; ThreadPoolX.Init(); try { var set = Setting.Current; Debug = set.Debug; LogPath = set.LogPath; } catch { } }