Agliullov D. A. Lab Work 7 Hard #20

Closed
d.agliullov wants to merge 34 commits from Lab7_Hard into Lab6_Hard
Showing only changes of commit 58f443b79a - Show all commits

View File

@ -116,6 +116,8 @@ namespace ConfectioneryBusinessLogic
{
Id = order.Id
});
// отдыхаем
Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100));
}
// кто-то мог уже перехватить заказ, игнорируем ошибку
catch (InvalidOperationException ex)
@ -128,8 +130,6 @@ namespace ConfectioneryBusinessLogic
_logger.LogError(ex, "Error while do work");
throw;
}
// отдыхаем
Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100));
}
});