示例#1
0
        }         // GetInference (historical, by date [and payment])

        public List <Inference> GetInferenceHistory(
            int customerID,
            DateTime time,
            bool includeTryOuts,
            int?maxHistoryLength = null
            )
        {
            Log.Debug(
                "Engine.GetInferenceHistory({0}, {1}, {2}, {3}) started...",
                customerID,
                time.ToString("d/MMM/yyyy H:mm:ss", CultureInfo.InvariantCulture),
                includeTryOuts,
                maxHistoryLength == null ? "entire history" : Grammar.Number(maxHistoryLength.Value, "item")
                );

            List <Inference> result = Keeper.LoadInferenceHistory(
                customerID,
                time,
                includeTryOuts,
                maxHistoryLength
                );

            Log.Debug(
                "Engine.GetInferenceHistory({0}, {1}, {2}, {3}) complete.",
                customerID,
                time.ToString("d/MMM/yyyy H:mm:ss", CultureInfo.InvariantCulture),
                includeTryOuts,
                maxHistoryLength == null ? "entire history" : Grammar.Number(maxHistoryLength.Value, "item")
                );

            return(result);
        }         // GetInferenceHistory