Esempio n. 1
0
        public DataResult <string> ProcessBeatItems(string secret)
        {
            var result = RunAction(() =>
            {
                var life = new JobLifeService();
                return(life.DoBeat(BeatTypes.Items));
            }, $"beatitems");

            return(result);
        }
Esempio n. 2
0
        public DataResult <string> ProcessCycle(string secret)
        {
            var result = RunAction(() =>
            {
                var life = new JobLifeService();
                return(life.ToggleCycle());
            }, $"period");

            return(result);
        }