Exemplo n.º 1
0
        private int NewFileLogger()
        {
            log_file = _logService.NewFile(template_loaded,
                                           lines,
                                           Id,
                                           templateId.Value);

            if (log_file == null)
            {
                return(-1);
            }

            if (apply_overrides == true)
            {
                ge_log_helper gf = new ge_log_helper();
                gf.log_file = log_file;
                gf.AddOverrides(probe_depth, bh_ref);
            }

            return(log_file.readings.Count());
        }
Exemplo n.º 2
0
        private async Task <int> loadFileLogger()
        {
            log_file = await _logService.GetByDataId(Id, table);

            if (log_file == null)
            {
                return(-1);
            }

            if (apply_overrides == true)
            {
                ge_log_helper gf = new ge_log_helper();
                gf.log_file = log_file;
                gf.AddOverrides(probe_depth, bh_ref);
            }

            if (log_file.readings == null)
            {
                return(1);
            }
            return(log_file.readings.Count());
        }
Exemplo n.º 3
0
        private async Task <int> NewFileLoggerAsync()
        {
            log_file = await _logService.NewFile(Id,
                                                 templateId.Value,
                                                 table,
                                                 sheet,
                                                 _dataService);


            if (log_file == null)
            {
                return(-1);
            }

            if (apply_overrides == true)
            {
                ge_log_helper gf = new ge_log_helper();
                gf.log_file = log_file;
                gf.AddOverrides(probe_depth, bh_ref);
            }

            return(log_file.readings.Count());
        }