TeamMentor.CoreLib.TM_Xml_Database_Load_And_FileCache.queue_Save_GuidanceItemsCache C# (CSharp) Method

queue_Save_GuidanceItemsCache() public static method

public static queue_Save_GuidanceItemsCache ( this tmFileStorage ) : TM_FileStorage
tmFileStorage this
return TeamMentor.FileStorage.TM_FileStorage
        public static TM_FileStorage queue_Save_GuidanceItemsCache(this TM_FileStorage tmFileStorage)
        {
            // do this on a separate thread so that we don't hang the current request
            if (thread_Save_GuidanceItemsCache.isNull())
            {
                thread_Save_GuidanceItemsCache = O2Thread.mtaThread(
                    ()=>{
                            1000.sleep();
                            tmFileStorage.save_GuidanceItemsToCache();
                            thread_Save_GuidanceItemsCache = null;
                    });

            }
            return tmFileStorage;
        }