/// <summary> /// Gets the thread-local dictionary /// </summary> /// <param name="create">Must be true for any subsequent dictionary modification operation</param> /// <returns></returns> private static IDictionary <string, object> GetThreadDictionary(bool create = true) { var dictionary = ThreadLocalStorageHelper.GetDataForSlot <Dictionary <string, object> >(dataSlot, create); if (dictionary == null && !create) { return(EmptyDefaultDictionary); } return(dictionary); }
private static Stack <object> GetThreadStack(bool create = true) { return(ThreadLocalStorageHelper.GetDataForSlot <Stack <object> >(dataSlot, create)); }
/// <summary> /// Gets the thread-local dictionary /// </summary> /// <param name="create">Must be true for any subsequent dictionary modification operation</param> /// <returns></returns> private static IDictionary <string, object> GetThreadDictionary(bool create = true) { return(ThreadLocalStorageHelper.GetDataForSlot <Dictionary <string, object> >(DataSlot, create)); }