コード例 #1
0
        public static OptionResult Create(MongoConnection mongoConnection, DateTime beginTime, DateTime endTime, string name, bool success, long Memory)
        {
            OptionResult optionResult = new OptionResult()
            {
                BeginTime = beginTime,
                EndTime   = endTime,
                Name      = name,
                Success   = success,
                Memory    = Memory,
            };

            Create(mongoConnection, optionResult);

            return(optionResult);
        }
コード例 #2
0
        public void UpdateStatisticsFromResults(MongoConnection _mongoConnection)
        {
            optionLastMemory = OptionResult.GetMemoryStatistics(_mongoConnection);

            options = OptionResult.GetOptionStatus(_mongoConnection);
        }