Exemple #1
0
 public CalculationEngine(InputParameter inputParameter, Action <string> logDelegate)
 {
     this.inputParameter = inputParameter;
     prefix      = DateTime.Now.ToString("yyyyMMdd-HH.mm.ss.fff-");
     logFileName = Path.Combine(this.inputParameter.LogFolder, prefix + "log.txt");
     logWriter   = new LogWriter(logFileName);
     logWriter.Add(logDelegate);
     logWriter.Write($"Log File : {logFileName}");
 }
Exemple #2
0
        public CalculationEngine(InputParameter inputParam, Action <string> logDelegate)
        {
            logWriter = new LogWriter(inputParam.LogFolder, "log.txt");

            logWriter.Add(logDelegate);

            context = new SQLContext(logWriter.Write);

            configHandle = new ConfigHandle(inputParam.ConfigExcelFilePath, logWriter.Write);

            inputHandle = new InputHandle(inputParam.InputExcelFilePath, logWriter.Write);
        }