public Job Process(Job job, string input)
        {
            var stopwatch = new Stopwatch();

            stopwatch.Start();
            var result = _decorated.Process(job, input);

            stopwatch.Stop();
            result.ElapsedMilliseconds = stopwatch.ElapsedMilliseconds;
            return(result);
        }
Beispiel #2
0
 private void HashAndStore(string toHash, Job jobEntity)
 {
     jobEntity = _hashJobProcessor.Process(jobEntity, toHash);
     _jobRepository.Update(jobEntity);
 }