Beispiel #1
0
        //=========================================================================
        // 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);
        }
Beispiel #2
0
        public static object GetData(LocalDataStoreSlot slot)
        {
            LocalDataStoreManager.ValidateSlot(slot);
            LocalDataStore domainLocalStore = GetDomainLocalStore();

            if (domainLocalStore == null)
            {
                return(null);
            }
            return(domainLocalStore.GetData(slot));
        }
Beispiel #3
0
        /*=========================================================================
        ** 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));
        }
Beispiel #4
0
 public static object GetData(LocalDataStoreSlot slot) => LocalDataStore.GetData(slot);