public static LoadProcess Read(int?loadProcessKey)
        {
            var sql = new ReadLoadProcessTableTask(loadProcessKey);

            sql.Execute();
            return(sql.LoadProcess);
        }
        public static LoadProcess ReadWithOption(ReadOptions option)
        {
            var sql = new ReadLoadProcessTableTask()
            {
                ReadOption = option
            };

            sql.Execute();
            return(sql.LoadProcess);
        }
        public static List <LoadProcess> ReadAll()
        {
            var sql = new ReadLoadProcessTableTask()
            {
                ReadOption = ReadOptions.ReadAllProcesses
            };

            sql.Execute();
            return(sql.AllLoadProcesses);
        }
        public override void Execute()
        {
            new SqlTask(this, Sql).ExecuteNonQuery();
            var rlp = new ReadLoadProcessTableTask(LoadProcessKey)
            {
                TaskType = this.TaskType, TaskHash = this.TaskHash, DisableLogging = true
            };

            rlp.Execute();
            ControlFlow.CurrentLoadProcess = rlp.LoadProcess;
        }
Beispiel #5
0
        public override void Execute()
        {
            //TODO umschreiben in eine Zeile?
            var read = new ReadLoadProcessTableTask()
            {
                ReadOption = ReadOptions.ReadAllProcesses
            };

            read.Execute();
            List <LoadProcess> logEntries = read.AllLoadProcesses;

            JSON = JsonConvert.SerializeObject(logEntries, new JsonSerializerSettings {
                Formatting        = Formatting.Indented,
                ContractResolver  = new CamelCasePropertyNamesContractResolver(),
                NullValueHandling = NullValueHandling.Ignore
            });
        }