Пример #1
0
        static ThreadIDHelper()
        {
#if NETCF
            Instance = new Win32ThreadIDHelper();
#else
            if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows) ||
                PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsCE) ||
                PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT)
                )
            {
                Instance = new Win32ThreadIDHelper();
            }
            else
            {
                Instance = new PortableThreadIDHelper();
            }
#endif
        }
Пример #2
0
        static ThreadIDHelper()
        {
#if NETCF
            Instance = new Win32ThreadIDHelper();
#else
            if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows)
             || PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsCE)
             || PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT)
             )
            {
                Instance = new Win32ThreadIDHelper();
            }
            else
            {
                Instance = new PortableThreadIDHelper();
            }
#endif
        }