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); }
private void HashAndStore(string toHash, Job jobEntity) { jobEntity = _hashJobProcessor.Process(jobEntity, toHash); _jobRepository.Update(jobEntity); }