Exemplo n.º 1
0
        public void CreateNewTiming()
        {
            JobTiming newTiming = JobTiming.NewJobTiming(JobItemId, DeveloperId);

            newTiming.Start();
            JobTimings.Add(newTiming);
        }
Exemplo n.º 2
0
        public TimeSpan GetActiveEllapsedTime()
        {
            JobTiming activeTiming = JobTimings.FirstOrDefault(x => x.IsRunning);

            if (activeTiming != null)
            {
                return(activeTiming.GetEllapsedTime());
            }
            return(TimeSpan.Zero);
        }
Exemplo n.º 3
0
        public static JobTiming NewJobTiming(int jobItemId, int developerId)
        {
            JobTiming newTiming = _DAL.CreateNewJobTiming(jobItemId, developerId);

            return(newTiming);
        }