diff --git a/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs b/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs index f3bdb8f..4f9da9c 100644 --- a/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs +++ b/LawFirm/AbstractLawFirmBusinessLogic/BusinessLogic/WorkModeling.cs @@ -76,6 +76,8 @@ namespace AbstractLawFirmBusinessLogic.BusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -88,8 +90,7 @@ namespace AbstractLawFirmBusinessLogic.BusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); + } }); }