Exemple #1
0
        public static object GetData(LocalDataStoreSlot slot)
        {
            LocalDataStoreManager.ValidateSlot(slot);
            LocalDataStore domainLocalStore = GetDomainLocalStore();

            if (domainLocalStore == null)
            {
                return(null);
            }
            return(domainLocalStore.GetData(slot));
        }
        public static object GetData(LocalDataStoreSlot slot)
        {
            LocalDataStoreHolder holder = s_LocalDataStore;

            if (holder == null)
            {
                LocalDataStoreManager.ValidateSlot(slot);
                return(null);
            }
            return(holder.Store.GetData(slot));
        }
Exemple #3
0
        /*=========================================================================
        ** Retrieves the value from the specified slot on the current thread, for that thread's current domain.
        ** =========================================================================*/
        public static Object GetData(LocalDataStoreSlot slot)
        {
            LocalDataStoreHolder dls = s_LocalDataStore;

            if (dls == null)
            {
                // Make sure to validate the slot even if we take the quick path
                LocalDataStoreManager.ValidateSlot(slot);
                return(null);
            }

            return(dls.Store.GetData(slot));
        }