예제 #1
0
 /// <summary>
 /// Initializes static members of the ThreadIDHelper class.
 /// </summary>
 static ThreadIDHelper()
 {
     if (PlatformDetector.IsWin32)
     {
         Instance = new Win32ThreadIDHelper();
     }
     else
     {
         Instance = new PortableThreadIDHelper();
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes static members of the ThreadIDHelper class.
 /// </summary>
 static ThreadIDHelper()
 {
     if (PlatformDetector.IsWin32)
     {
         Instance = new Win32ThreadIDHelper();
     }
     else
     {
         Instance = new PortableThreadIDHelper();
     }
 }
예제 #3
0
        /// <summary>
        /// Initializes static members of the ThreadIDHelper class.
        /// </summary>
        static ThreadIDHelper()
        {
#if !SILVERLIGHT && !__IOS__ && !__ANDROID__ && !NETSTANDARD
            if (PlatformDetector.IsWin32)
            {
                Instance = new Win32ThreadIDHelper();
            }
            else
#endif
            {
                Instance = new PortableThreadIDHelper();
            }
        }
예제 #4
0
        /// <summary>
        /// Initializes static members of the ThreadIDHelper class.
        /// </summary>
        static ThreadIDHelper()
        {
#if NET_CF
            Instance = new Win32ThreadIDHelper();
#else
            if (PlatformDetector.IsWin32)
            {
                Instance = new Win32ThreadIDHelper();
            }
            else
            {
                Instance = new PortableThreadIDHelper();
            }
#endif
        }
예제 #5
0
        /// <summary>
        /// Initializes static members of the ThreadIDHelper class.
        /// </summary>
        static ThreadIDHelper()
        {
#if NET_CF
            Instance = new Win32ThreadIDHelper();
#else
            if (PlatformDetector.IsWin32)
            {
                Instance = new Win32ThreadIDHelper();
            }
            else
            {
                Instance = new PortableThreadIDHelper();
            }
#endif
        }
예제 #6
0
        /// <summary>
        /// Initializes static members of the ThreadIDHelper class.
        /// </summary>
        static ThreadIDHelper()
        {
#if NET_CF
            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
        }
예제 #7
0
        /// <summary>
        /// Initializes static members of the ThreadIDHelper class.
        /// </summary>
        static ThreadIDHelper()
        {
#if NET_CF
            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
        }