コード例 #1
0
ファイル: Thread.cs プロジェクト: Paul1nh0/Singularity
        //=========================================================================
        // Retrieves the value from the specified slot on the current thread.
        //=========================================================================
        //| <include path='docs/doc[@for="Thread.GetData"]/*' />
        public static Object GetData(LocalDataStoreSlot slot)
        {
            m_LocalDataStoreMgr.ValidateSlot(slot);

            if (localDataStore != null)
            {
                return(localDataStore.GetData(slot));
            }
            return(null);
        }
コード例 #2
0
ファイル: Thread.cs プロジェクト: randomize/VimConfig
        public static object GetData(LocalDataStoreSlot slot)
        {
            LocalDataStoreManager.ValidateSlot(slot);
            LocalDataStore domainLocalStore = GetDomainLocalStore();

            if (domainLocalStore == null)
            {
                return(null);
            }
            return(domainLocalStore.GetData(slot));
        }
コード例 #3
0
ファイル: thread.cs プロジェクト: wolewd/Windows-Server-2003
        /*=========================================================================
        ** Retrieves the value from the specified slot on the current thread, for that thread's current domain.
        ** =========================================================================*/
        /// <include file='doc\Thread.uex' path='docs/doc[@for="Thread.GetData"]/*' />
        public static Object GetData(LocalDataStoreSlot slot)
        {
            m_LocalDataStoreMgr.ValidateSlot(slot);

            LocalDataStore dls = GetDomainLocalStore();

            if (dls == null)
            {
                return(null);
            }

            return(dls.GetData(slot));
        }
コード例 #4
0
ファイル: Thread.cs プロジェクト: zuimengaitianya/corefx
 public static object GetData(LocalDataStoreSlot slot) => LocalDataStore.GetData(slot);