Exemple #1
0
        protected DataSet get_recent_builder_logs(DateTime?StartDate, DateTime?EndDate, string Filter, bool Include_No_Work, Custom_Tracer Tracer)
        {
            // Look in the cache first
            DataSet fromCache = CachedDataManager.Builder.Retrieve_Builder_Logs(StartDate, EndDate, Filter, Include_No_Work, Tracer);

            if (fromCache != null)
            {
                return(fromCache);
            }

            // Try to pull from the database
            DataSet fromDb = Engine_Database.Builder_Log_Search(StartDate, EndDate, Filter, Include_No_Work, Tracer);

            // Store in the cache if not null
            if (fromDb != null)
            {
                CachedDataManager.Builder.Store_Builder_Logs(fromDb, StartDate, EndDate, Filter, Include_No_Work, Tracer);
            }

            return(fromDb);
        }